diff options
author | Udo Walter | 2017-12-07 18:48:00 +0100 |
---|---|---|
committer | Udo Walter | 2017-12-07 18:48:00 +0100 |
commit | a1920b7f3f416e76863690d24de7282917698c09 (patch) | |
tree | 688a9d1ac013985a0bcf09765fa4ce68d0dc1c48 /modules-available/permissionmanager/inc/permissionutil.inc.php | |
parent | [dozmod] reworked permission system from "click and you get error" to "button... (diff) | |
download | slx-admin-a1920b7f3f416e76863690d24de7282917698c09.tar.gz slx-admin-a1920b7f3f416e76863690d24de7282917698c09.tar.xz slx-admin-a1920b7f3f416e76863690d24de7282917698c09.zip |
[permissionmanager] added support for localized permission descriptions;
moved add/delete buttons to the right; items in the user and locations
table can now be selected by clicking anywhere in the table row;
Diffstat (limited to 'modules-available/permissionmanager/inc/permissionutil.inc.php')
-rw-r--r-- | modules-available/permissionmanager/inc/permissionutil.inc.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules-available/permissionmanager/inc/permissionutil.inc.php b/modules-available/permissionmanager/inc/permissionutil.inc.php index 391cd047..64fe8f26 100644 --- a/modules-available/permissionmanager/inc/permissionutil.inc.php +++ b/modules-available/permissionmanager/inc/permissionutil.inc.php @@ -73,10 +73,9 @@ class PermissionUtil if (!is_array($data)) continue; preg_match('#^modules/([^/]+)/#', $file, $out); - $newData = array(); - foreach( $data as $k => $v ) { - $newData[] = $v; - $permissions = self::putInPermissionTree($out[1].".".$k, $v, $permissions); + foreach( $data as $p ) { + $description = Dictionary::translateFileModule($out[1], "permissions", $p); + $permissions = self::putInPermissionTree($out[1].".".$p, $description, $permissions); } } ksort($permissions); |