Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomGroup - change admin permission to 'administer CiviCRM data' #20833

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

colemanw
Copy link
Member

Overview

Fine-tunes the permissions needed to access all custom data.

Before

Users with "administer CiviCRM" could access all custom data.

After

Users with "administer CiviCRM" can still access all custom data, but now users with 'administer CiviCRM data' can do so as well.

Technical Details

This permission is a subset of 'administer CiviCRM' and is more precise, allowing finer-grained admin permissions.

This permission is a subset of 'administer CiviCRM' and is more precise,
allowing finer-grained admin permissions.
@civibot
Copy link

civibot bot commented Jul 12, 2021

(Standard links)

@civibot civibot bot added the master label Jul 12, 2021
@@ -211,8 +211,6 @@ public static function group($groupType, $excludeHidden = TRUE) {
* @return bool
*/
public static function customGroupAdmin() {
$admin = FALSE;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused variable

@colemanw
Copy link
Member Author

@eileenmcnaughton does this look like a good use of the new sub permissions?

@seamuslee001
Copy link
Contributor

+1 from me

@eileenmcnaughton
Copy link
Contributor

The way the function is used is pretty weird - but the permission change to the lower permission is good

@eileenmcnaughton eileenmcnaughton merged commit 7d769c1 into civicrm:master Jul 13, 2021
@eileenmcnaughton eileenmcnaughton deleted the customPerm branch July 13, 2021 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants