From dbb5b87b45f7f6a4a7f42373e2dbc3f37c690e99 Mon Sep 17 00:00:00 2001
From: daniel <daniel@ispconfig3>
Date: Wed, 04 Jun 2008 16:05:44 -0400
Subject: [PATCH] 

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

diff --git a/interface/web/sites/shell_user_edit.php b/interface/web/sites/shell_user_edit.php
index a6d45a4..633ef46 100644
--- a/interface/web/sites/shell_user_edit.php
+++ b/interface/web/sites/shell_user_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"],'sites')) {
-	header("Location: ../index.php");
-	exit;
-}
+//* Check permissions for module
+$app->auth->check_module_permissions('sites');
 
 // Loading classes
 $app->uses('tpl,tform,tform_actions');

--
Gitblit v1.9.1