diff options
author | Simon Rettberg | 2018-02-14 14:13:40 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-02-14 14:13:40 +0100 |
commit | 76cd19df64210d7512a53216b8b173233a923fc2 (patch) | |
tree | 93d1a7b266e7b20cc7eb387e217ac5e716b75b50 /modules-available/permissionmanager/inc/permissionutil.inc.php | |
parent | [permissionmanager] Apply formatting (diff) | |
download | slx-admin-76cd19df64210d7512a53216b8b173233a923fc2.tar.gz slx-admin-76cd19df64210d7512a53216b8b173233a923fc2.tar.xz slx-admin-76cd19df64210d7512a53216b8b173233a923fc2.zip |
[permissionmanager] Fix: False positive for perm validity check
Diffstat (limited to 'modules-available/permissionmanager/inc/permissionutil.inc.php')
-rw-r--r-- | modules-available/permissionmanager/inc/permissionutil.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-available/permissionmanager/inc/permissionutil.inc.php b/modules-available/permissionmanager/inc/permissionutil.inc.php index d3948ebd..f1385bc2 100644 --- a/modules-available/permissionmanager/inc/permissionutil.inc.php +++ b/modules-available/permissionmanager/inc/permissionutil.inc.php @@ -163,6 +163,8 @@ class PermissionUtil trigger_error('[skip:3]Cannot check malformed permission "' . $permissionId . '"', E_USER_WARNING); return; } + if ($split[1] === '*') + return; $data = json_decode(file_get_contents('modules/' . $split[0] . '/permissions/permissions.json'), true); if (substr($split[1], -2) === '.*') { $len = strlen($split[1]) - 1; |