Browse code

changed subusers module to only require systemuser privileges

Bernd Wurst authored on19/03/2012 13:49:43
Showing3 changed files
... ...
@@ -14,7 +14,7 @@ http://creativecommons.org/publicdomain/zero/1.0/
14 14
 Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
15 15
 */
16 16
 
17
-require_role(ROLE_SYSTEMUSER | ROLE_CUSTOMER);
17
+require_role(ROLE_SYSTEMUSER);
18 18
 require_once("inc/base.php");
19 19
 require_once("inc/security.php");
20 20
 require_once("inc/debug.php");
... ...
@@ -16,7 +16,7 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r
16 16
 
17 17
 $role = $_SESSION['role'];
18 18
 
19
-if ($role & ROLE_SYSTEMUSER && $role & ROLE_CUSTOMER) {
19
+if ($role & ROLE_SYSTEMUSER) {
20 20
   $menu["subusers_subusers"] = array("label" => "Zusätzliche Admins", "file" => "subusers", "weight" => 1, "submenu" => "systemuser_account");
21 21
   //$menu["subusers_subusers"] = array("label" => "Zusätzliche Admins", "file" => "subusers", "weight" => 1);
22 22
 }
... ...
@@ -16,6 +16,8 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r
16 16
 
17 17
 require_once('inc/icons.php');
18 18
 
19
+require_role(ROLE_SYSTEMUSER);
20
+
19 21
 include("subuser.php");
20 22
 
21 23
 title("Zusätzliche Admin-Zugänge");