From 9e80e3736fbe91b60eec2ef96c36101b6f018f17 Mon Sep 17 00:00:00 2001
From: moglia <moglia@ispconfig3>
Date: Sat, 08 Aug 2009 23:05:46 -0400
Subject: [PATCH] Initial upload - added standard_index.html_br and user_standard_index.html_br for brazilian portuguese language.

---
 interface/web/admin/groups_edit.php |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/interface/web/admin/groups_edit.php b/interface/web/admin/groups_edit.php
index d649f40..d2acf2b 100644
--- a/interface/web/admin/groups_edit.php
+++ b/interface/web/admin/groups_edit.php
@@ -41,11 +41,8 @@
 require_once('../../lib/config.inc.php');
 require_once('../../lib/app.inc.php');
 
-// Checking module permissions
-if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) {
-	header("Location: ../index.php");
-	exit;
-}
+//* Check permissions for module
+$app->auth->check_module_permissions('admin');
 
 // Loading classes
 $app->uses('tpl,tform,tform_actions');

--
Gitblit v1.9.1