-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3217353 by Ressinel: Move away from our *_permission functions…
… and to move to calling user_role_grant_permission with static arrays instead. This has a few benefits: 1. This avoids some indirection which should make it clearer what is being assigned to what role 2. We don’t automatically merge permission arrays. Drupal already does this so e.g. we don’t need to assign everything we assign to authenticated user, also to site manager. This helps move to thinking in roles as features rather than all-containing things. 3. We can no longer call get_permissions from an update hook but instead need to explicitly specify what we’re updating. This makes permission changes more easy to trace and keeps the behaviour of update hooks the same throughout versions.
- Loading branch information
Andrii Chyrskyi
committed
Jul 20, 2021
1 parent
2a524f0
commit 7eab050
Showing
33 changed files
with
1,078 additions
and
1,638 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.