aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/admin/role.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-11-18 10:04:27 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-11-18 10:04:27 +0000
commitc0fd6686718362bd7340243f29bbd922faf6e78c (patch)
tree959f7a0154e0f31eb3030c5e12e4ca391de15d43 /app/controllers/admin/role.php
parent5600a0a29927e227766e371b097b91bace168bd0 (diff)
group roles in administration, fixes #1793
Closes #1793 Merge request studip/studip!1173
Diffstat (limited to 'app/controllers/admin/role.php')
-rw-r--r--app/controllers/admin/role.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/role.php b/app/controllers/admin/role.php
index f932b0d..6d1a82a 100644
--- a/app/controllers/admin/role.php
+++ b/app/controllers/admin/role.php
@@ -177,7 +177,7 @@ class Admin_RoleController extends AuthenticatedController
$this->currentuser = $this->users[$usersel];
$this->assignedroles = $this->currentuser->getRoles();
$this->all_userroles = $this->currentuser->getRoles(true);
- $this->roles = RolePersistence::getAllRoles();
+ $this->roles = RolePersistence::getAllRoles(true);
foreach ($this->assignedroles as $role) {
$institutes = SimpleCollection::createFromArray(Institute::findMany(RolePersistence::getAssignedRoleInstitutes($usersel, $role->getRoleid())));
$this->assignedroles_institutes[$role->getRoleid()] = $institutes->orderBy('name')->pluck('name');
@@ -227,7 +227,7 @@ class Admin_RoleController extends AuthenticatedController
$this->plugins = PluginManager::getInstance()->getPluginInfos();
$this->assigned = RolePersistence::getAssignedPluginRoles($pluginid);
- $this->roles = RolePersistence::getAllRoles();
+ $this->roles = RolePersistence::getAllRoles(true);
$this->pluginid = $pluginid;
}