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

actually enforce new permissions for admin and preview #27092

Merged
merged 1 commit into from
May 20, 2024

Conversation

twrichards
Copy link
Contributor

@twrichards twrichards commented May 1, 2024

What does this change?

#27078 introduced logging when users interact with admin and preview but didn't have the necessary permission... this PR actually enforces those permissions by serving 403s if the user doesn't have the permission needed.

Screenshots

When the user doesn't have permission in the permissions tool (see https://github.com/guardian/permissions/pull/184):
image
image

Checklist

@twrichards twrichards force-pushed the editorial-permissions-proper branch from e7902de to b1089b9 Compare May 2, 2024 13:41
Base automatically changed from editorial-permissions to main May 2, 2024 15:31
@twrichards twrichards changed the base branch from main to fix-dev-build-following-pan-domain-authentication May 2, 2024 15:34
Base automatically changed from fix-dev-build-following-pan-domain-authentication to main May 2, 2024 15:58
@twrichards twrichards force-pushed the editorial-permissions-proper branch from b1089b9 to f0e044b Compare May 2, 2024 21:19
@twrichards twrichards force-pushed the editorial-permissions-proper branch from f0e044b to d63c088 Compare May 16, 2024 09:15
@twrichards twrichards marked this pull request as ready for review May 16, 2024 09:15
@twrichards twrichards requested a review from a team as a code owner May 16, 2024 09:15
… for now (rather than 403) - reverting this commit will follow in a sep. PR"

This reverts commit 8da0eb5.
@twrichards twrichards force-pushed the editorial-permissions-proper branch from d63c088 to d4cac86 Compare May 20, 2024 10:44
@twrichards twrichards merged commit 4633e96 into main May 20, 2024
3 checks passed
@twrichards twrichards deleted the editorial-permissions-proper branch May 20, 2024 11:03
@prout-bot
Copy link
Collaborator

Seen on ADMIN-PROD (merged by @twrichards 12 minutes and 1 second ago)

@prout-bot
Copy link
Collaborator

Seen on FRONTS-PROD (merged by @twrichards 12 minutes and 19 seconds ago)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants