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

fix/1.x 363 emergency publisher perms #364

Merged
merged 8 commits into from
Aug 20, 2024

Conversation

andybroomfield
Copy link
Contributor

@andybroomfield andybroomfield commented Aug 11, 2024

  • Add access toolbar, view administation theme perms to emergeny publisher role
  • Add access content overview permission

Fix #363

What does this change?

Adds the following permisions to the emergency publisher role

  • 'access content overview'
  • 'access toolbar'
  • 'view the administration theme'

This is to allow users with just the emergency publisher role to access the manage alert banners screen from the toolbar menu.

How to test

Create a user with just the emergency publisher role and check they can navigate to content -> alert banners in the top menu.

How can we measure success?

Users with this role can now access the alert banners screen on default setup.

Have we considered potential risks?

Gives access to access content overview, which they should'nt really need. Risk is small since typically those with this role would have access to that anyway. However since this PR is about those with just this role, it does give rise to asking if a seperate menu item should now be provided.

Images

n/a

Accessibility

n/a

andybroomfield and others added 8 commits August 11, 2024 17:35
This is so the alert banners menu option is avalible in the toolbar
This permission isn't nessecary to access these pages.
Use a function to install default permissions on install for
emergency publisher based on if node or toolbar is installed.

Also move the default anon / authenticated users to the
set_default_permissions() function.

Also only proceed during first install, not on config sync operations.
@andybroomfield andybroomfield force-pushed the fix/1.x-363-emergency-publisher-perms branch from ea4cc1e to dac38a2 Compare August 13, 2024 16:24
@andybroomfield andybroomfield marked this pull request as ready for review August 13, 2024 16:58
@andybroomfield
Copy link
Contributor Author

So this was due to changes to emergency publisher installing permissions that are not defined during the test runs.

Copy link
Member

@finnlewis finnlewis left a comment

Choose a reason for hiding this comment

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

Tested locally and works a charm, thanks @andybroomfield !

@finnlewis finnlewis merged commit 9fda642 into 1.8.x Aug 20, 2024
8 checks passed
@finnlewis finnlewis deleted the fix/1.x-363-emergency-publisher-perms branch August 20, 2024 11:07
@andybroomfield andybroomfield mentioned this pull request Sep 16, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants