mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
display filtered roles when not an admin
This commit is contained in:
parent
3c55608075
commit
7e32268ede
@ -183,7 +183,7 @@ class Group extends DataObject {
|
||||
|
||||
// Add roles (and disable all checkboxes for inherited roles)
|
||||
$allRoles = PermissionRole::get();
|
||||
if(Permission::check('ADMIN')) {
|
||||
if(!Permission::check('ADMIN')) {
|
||||
$allRoles = $allRoles->filter("OnlyAdminCanApply", 0);
|
||||
}
|
||||
if($this->ID) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user