Added hasRole twig extension and Auditer role & permission set

This commit is contained in:
2023-05-31 14:00:52 +01:00
parent a67214d024
commit fc707b1abf
7 changed files with 465 additions and 2 deletions

View File

@@ -10,4 +10,6 @@ Fixes/tweaks a few "issues" with the default UserFrosting installation, includin
- Adds a user creation button to the group admin page
- Fixes showing user activity depending on the current user's permission to view it
- Allow site-admins to view roles & permissions
- Allow site-admins to edit basic role details (name, slug & description)
- Allow site-admins to edit basic role details (name, slug & description)
- Added 'hasRole' twig function to check if a user has a role (if a role doesn't exist, always returns false)
- Added 'Auditer' role and split the activities permission away from site-admins (exclusive only) and everyone else