mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Group visibility for SITETREE_GRANT_ACCESS permissions
Make groups visible if member has SITETREE_GRANT_ACCESS permissions, otherwise the dropdown for selecting the group is empty
This commit is contained in:
parent
600f188287
commit
cd946b6c80
@ -635,6 +635,11 @@ class Group extends DataObject
|
||||
return true;
|
||||
}
|
||||
|
||||
// if user can grant access for specific groups, they need to be able to see the groups
|
||||
if (Permission::checkMember($member, "SITETREE_GRANT_ACCESS")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user