diff options
author | Simon Rettberg | 2018-04-09 17:04:38 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-04-09 17:04:38 +0200 |
commit | 018339a07bd6511275b6a780cd9a2b54eb319414 (patch) | |
tree | fdf57f22be558d88802c5be56b985bcda1afc00f | |
parent | Permissions: Consistency: Make all pages require at least one permission to b... (diff) | |
download | slx-admin-018339a07bd6511275b6a780cd9a2b54eb319414.tar.gz slx-admin-018339a07bd6511275b6a780cd9a2b54eb319414.tar.xz slx-admin-018339a07bd6511275b6a780cd9a2b54eb319414.zip |
[adduser] Rename permission to view-list
-rw-r--r-- | modules-available/adduser/page.inc.php | 2 | ||||
-rw-r--r-- | modules-available/adduser/permissions/permissions.json | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/adduser/page.inc.php b/modules-available/adduser/page.inc.php index c43a04e6..3af4ea6d 100644 --- a/modules-available/adduser/page.inc.php +++ b/modules-available/adduser/page.inc.php @@ -191,7 +191,7 @@ class Page_AddUser extends Page Render::closeTag('form'); } } elseif ($show === 'list') { - User::assertPermission('list.view'); + User::assertPermission('user.view-list'); $page = new Paginate('SELECT userid, login, fullname, phone, email FROM user ORDER BY login', 50); $data = ['list' => $page->exec()->fetchAll(PDO::FETCH_ASSOC)]; foreach ($data['list'] as &$u) { diff --git a/modules-available/adduser/permissions/permissions.json b/modules-available/adduser/permissions/permissions.json index e778b893..e8fd0a5e 100644 --- a/modules-available/adduser/permissions/permissions.json +++ b/modules-available/adduser/permissions/permissions.json @@ -8,7 +8,7 @@ "user.remove": { "location-aware": false }, - "list.view": { + "user.view-list": { "location-aware": false } }
\ No newline at end of file |