Skip to content

Commit

Permalink
CustomGroup - change admin permission to 'administer CiviCRM data'
Browse files Browse the repository at this point in the history
This permission is a subset of 'administer CiviCRM' and is more precise,
allowing finer-grained admin permissions.
  • Loading branch information
colemanw committed Jul 12, 2021
1 parent 9a22ebc commit b4e415d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CRM/Core/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ public static function group($groupType, $excludeHidden = TRUE) {
* @return bool
*/
public static function customGroupAdmin() {
$admin = FALSE;

// check if user has all powerful permission
// or administer civicrm permission (CRM-1905)
if (self::check('access all custom data')) {
Expand All @@ -226,7 +224,7 @@ public static function customGroupAdmin() {
return TRUE;
}

if (self::check('administer CiviCRM')) {
if (self::check('administer CiviCRM data')) {
return TRUE;
}

Expand Down

0 comments on commit b4e415d

Please sign in to comment.