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

feat: Only apply permissions to superusers #29722

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

dcramer
Copy link
Member

@dcramer dcramer commented Nov 2, 2021

Adjust request.access to only apply permissions when an active superuser session is available.

Additionally remove the extra check for superuser in various code paths.

@dcramer dcramer requested review from a team as code owners November 2, 2021 22:13
@dcramer dcramer requested a review from markstory November 2, 2021 22:13
@dcramer
Copy link
Member Author

dcramer commented Nov 2, 2021

Going to expand access coverage

Copy link
Contributor

@RyanSkonnord RyanSkonnord left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Adjust `request.access` to only apply `permissions` when an active superuser session is available.

Additionally remove the extra check for superuser in various code paths.
@dcramer dcramer enabled auto-merge (squash) November 3, 2021 16:30
@dcramer dcramer merged commit 09787e9 into master Nov 3, 2021
@dcramer dcramer deleted the feat/permissions-only-superuser branch November 3, 2021 16:35
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants