Merge pull request #10750 from xini/patch-6

FIX: Group visibility for SITETREE_GRANT_ACCESS permissions
This commit is contained in:
Guy Sartorelli 2023-04-11 09:58:43 +12:00 committed by GitHub
commit a42bb856c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}