diff options
author | Simon Rettberg | 2018-02-19 13:36:35 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-02-19 13:36:35 +0100 |
commit | 7afe5a3ffee64ff5c1ee7692a2ac4c83d46d6a78 (patch) | |
tree | e1482e82af3b53422d0008669a05847079d660c6 /inc/permission.inc.php | |
parent | [vmstore] lang_intern -> lang_internal (diff) | |
download | slx-admin-7afe5a3ffee64ff5c1ee7692a2ac4c83d46d6a78.tar.gz slx-admin-7afe5a3ffee64ff5c1ee7692a2ac4c83d46d6a78.tar.xz slx-admin-7afe5a3ffee64ff5c1ee7692a2ac4c83d46d6a78.zip |
[permissionmanager] Implement permissions:
Permissinmanager is now protected by permissions.
In order to prevent complete lockout, the user with
userid == 1 will always be able to edit and assign permissions.
(TODO: Communicate this somehow)
Diffstat (limited to 'inc/permission.inc.php')
-rw-r--r-- | inc/permission.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/permission.inc.php b/inc/permission.inc.php index e61c7423..aaef6ba6 100644 --- a/inc/permission.inc.php +++ b/inc/permission.inc.php @@ -33,7 +33,7 @@ class Permission } $temp =& $array; foreach (explode('.', $perm) as $sub) { - if (empty($sub)) + if (empty($sub) || $sub === '*') continue; $temp =& $temp[$sub]; } |