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

Update admission queryset to be admission-specific #1225

Merged
merged 1 commit into from Sep 6, 2023

Conversation

norbye
Copy link
Member

@norbye norbye commented Sep 5, 2023

Makes the application list not care about is_staff and is_superuser, but rather the memberships in the groups pertaining the the admission.

The code that deletes applications still uses is_staff and is_superuser, but you could copy the same logic in that part if that's important..

@norbye norbye added the review-needed Pull requests that need review label Sep 5, 2023
@norbye norbye force-pushed the permission-fixup branch 3 times, most recently from 1a3ec51 to 9a35ccc Compare September 5, 2023 19:31
Copy link
Contributor

@PeterJFB PeterJFB left a comment

Choose a reason for hiding this comment

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

Looks nice, assuming tests fail since the test-user must be added to the admission.admin_group 👍

@norbye
Copy link
Member Author

norbye commented Sep 5, 2023

Looks nice, assuming tests fail since the test-user must be added to the admission.admin_group 👍

Agree, although I have no more time to look at it for the next 8+ hrs, so I won't be able to fix that right now

@norbye norbye force-pushed the permission-fixup branch 3 times, most recently from 824a145 to 2b50c60 Compare September 6, 2023 10:34
Copy link
Member

@danielyanghansen danielyanghansen left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@danielyanghansen danielyanghansen merged commit 09047bd into master Sep 6, 2023
3 checks passed
@danielyanghansen danielyanghansen deleted the permission-fixup branch September 6, 2023 10:59
@norbye norbye mentioned this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review-needed Pull requests that need review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants