From b4e415d79d7f693bea4c08f86bf3259782a2c624 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 12 Jul 2021 12:02:24 -0400 Subject: [PATCH] CustomGroup - change admin permission to 'administer CiviCRM data' This permission is a subset of 'administer CiviCRM' and is more precise, allowing finer-grained admin permissions. --- CRM/Core/Permission.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/Core/Permission.php b/CRM/Core/Permission.php index 64282d84bd..ca50dc4ea6 100644 --- a/CRM/Core/Permission.php +++ b/CRM/Core/Permission.php @@ -211,8 +211,6 @@ class CRM_Core_Permission { * @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')) { @@ -226,7 +224,7 @@ class CRM_Core_Permission { return TRUE; } - if (self::check('administer CiviCRM')) { + if (self::check('administer CiviCRM data')) { return TRUE; } -- 2.25.1