Files
discourse/lib/guardian
Natalie Tay 90f3dc738e FIX: Enforce tag group permissions for non-admin staff (#37377)
When a tag group is restricted to "admin only" (admins group has `full`
permission, everyone has `readonly`), moderators could still see and use
these tags. This happens because several routes use `is_staff?` to
bypass all permission filtering, treating moderators identically to
admins.

This commit changes `is_staff?` to `is_admin?`, so that the group permission
checks work as intended, and moderators will not be able to see or use
tags from "admin"-only tag groups. This affects these locations

- Tag picker when creating/editing topics
- Tag search and autocomplete
- Tag listing pages
- Tag group listings
2026-01-29 18:06:38 +08:00
..