diff --git a/security/Member.php b/security/Member.php index 7d7c61708..f0552aec1 100644 --- a/security/Member.php +++ b/security/Member.php @@ -1062,7 +1062,7 @@ class Member extends DataObject implements TemplateGlobalProvider { * * @return int[] List of group IDs */ - protected function disallowedGroups() { + public function disallowedGroups() { // unless the current user is an admin already OR the logged in user is an admin if (Permission::check('ADMIN') || Permission::checkMember($this, 'ADMIN')) { return array(); @@ -1486,7 +1486,7 @@ class Member extends DataObject implements TemplateGlobalProvider { if(Permission::check('EDIT_PERMISSIONS')) { // Filter allowed groups $groups = Group::get(); - $disallowedGroupIDs = $this->disallowedGroups(); + $disallowedGroupIDs = $self->disallowedGroups(); if ($disallowedGroupIDs) { $groups = $groups->exclude('ID', $disallowedGroupIDs); }