Commit 3686e268 authored by mattwire's avatar mattwire
Browse files

Administrator always has permission on menu items

parent 03c07b4e
......@@ -188,6 +188,9 @@ function groupadmin_civicrm_permission_check($permission, &$granted) {
return;
}
elseif (substr($permission, 0, 22) === 'access GroupAdmin menu') {
if (CRM_Core_Permission::check('administer CiviCRM')) {
return;
}
$parts = explode(' ', $permission);
$groupID = end($parts);
$granted = $groupID ? CRM_Groupadmin_BAO_GroupAdminContact::isCurrentUserAdminForGroup($groupID) : FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment