Skip to content

DEV: Remove now-redundant is_staff check from PostGuardian (part 1) #33713

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

Merged
merged 1 commit into from
Jul 21, 2025

Conversation

Drenmi
Copy link
Contributor

@Drenmi Drenmi commented Jul 19, 2025

What is this change?

A while back we replaced hard-coded #is_staff? checks with group based permissions.

The edit_post_allowed_groups setting has admins and moderators (i.e. staff) as mandatory values, and so we no longer need the explicit staff check.

@Drenmi Drenmi requested a review from martin-brennan July 19, 2025 04:10
@Drenmi Drenmi changed the title DEV: Remove now-redundant is_staff check from PostGuardian DEV: Remove now-redundant is_staff check from PostGuardian (part 1) Jul 19, 2025
@Drenmi Drenmi force-pushed the dev/post-guardian-tests branch from 695717d to 6e54e12 Compare July 21, 2025 06:29
Base automatically changed from dev/post-guardian-tests to main July 21, 2025 06:47
@Drenmi Drenmi force-pushed the dev/remove-redundant-staff-check-2 branch from d73e670 to 769fec6 Compare July 21, 2025 07:12
@Drenmi Drenmi merged commit a658e50 into main Jul 21, 2025
13 of 15 checks passed
@Drenmi Drenmi deleted the dev/remove-redundant-staff-check-2 branch July 21, 2025 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants