Skip to content

Commit

Permalink
Create bypass group access permission at Social Group module
Browse files Browse the repository at this point in the history
  • Loading branch information
vcsvinicius committed Nov 13, 2024
1 parent 28ebded commit e202f99
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/social_features/social_group/social_group.install
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function social_group_install(): void {
'flag mute_group_notifications',
'unflag mute_group_notifications',
'access cross-group posting',
'bypass group access',
]
);
// Add menu items.
Expand Down Expand Up @@ -1015,3 +1016,10 @@ function social_group_update_13013(): void {
->save();
}
}

/**
* Give bypass group access permission to site-manager.
*/
function social_group_update_13014(): void {
user_role_grant_permissions('sitemanager', ['bypass group access']);
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ view groups on other profiles:
'access cross-group posting':
title: 'Access cross-group posting'
description: 'This permission grants access to add node to multiple groups.'
'bypass group access':
title: 'Bypass group access control'
description: 'Gain full control over all groups and group configuration.'
restrict access: TRUE

0 comments on commit e202f99

Please sign in to comment.