Skip to content

DEV: Remove now-redundant is_staff check from PostGuardian #33714

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:17
Copy link
Contributor

@lis2 lis2 left a comment

Choose a reason for hiding this comment

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

🍹

@Drenmi Drenmi force-pushed the dev/remove-redundant-staff-check-2 branch from d73e670 to 769fec6 Compare July 21, 2025 07:12
@Drenmi Drenmi force-pushed the dev/remove-redundant-staff-check-3 branch from 73739bd to 5b55f16 Compare July 21, 2025 07:14
@Drenmi Drenmi changed the base branch from dev/remove-redundant-staff-check-2 to main July 21, 2025 07:14
@Drenmi Drenmi force-pushed the dev/remove-redundant-staff-check-3 branch from 5b55f16 to f6a2da5 Compare July 21, 2025 07:15
@Drenmi Drenmi merged commit 24f58cb into main Jul 21, 2025
14 of 15 checks passed
@Drenmi Drenmi deleted the dev/remove-redundant-staff-check-3 branch July 21, 2025 07:19
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