Skip to content

Commit

Permalink
Merge pull request #20833 from colemanw/customPerm
Browse files Browse the repository at this point in the history
CustomGroup - change admin permission to 'administer CiviCRM data'
  • Loading branch information
eileenmcnaughton authored Jul 13, 2021
2 parents ff82ff2 + b4e415d commit 7d769c1
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 7d769c1

Please sign in to comment.