discourse/lib/guardian
Ted Johansson 24f58cb4b0
DEV: Remove now-redundant is_staff check from PostGuardian (#33714)
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.
2025-07-21 15:19:39 +08:00
..
bookmark_guardian.rb FEATURE: Promote polymorphic bookmarks to default and migrate (#16729) 2022-05-23 10:07:15 +10:00
category_guardian.rb FEATURE: improve the suppression for admins when required (#29041) 2024-10-02 10:52:02 +10:00
ensure_magic.rb DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
flag_guardian.rb FEATURE: allow edit custom flags (#32344) 2025-04-17 12:31:52 +08:00
group_guardian.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
localization_guardian.rb DEV: Remove 'experimental' prefix from settings (#33233) 2025-06-19 12:23:42 +08:00
post_guardian.rb DEV: Remove now-redundant is_staff check from PostGuardian (#33714) 2025-07-21 15:19:39 +08:00
post_revision_guardian.rb FEATURE: Allow admins to permanently delete revisions (#19913) 2023-01-19 15:09:01 -06:00
sidebar_guardian.rb DEV: specs to ensure that only admin can edit Community section (#21666) 2023-05-23 10:54:55 +10:00
tag_guardian.rb DEV: Remove TagGuardian#can_create_tag? fallback (#25535) 2024-02-02 13:48:53 +08:00
topic_guardian.rb FEATURE: improve the suppression for admins when required (#29041) 2024-10-02 10:52:02 +10:00
user_guardian.rb FEATURE: Make it easier for staff to see if a profile is silenced (#33537) 2025-07-14 12:44:31 +08:00