mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-09 21:14:54 +08:00
Fixes a bug where moderators could be auto-silenced from chat flags. The chat auto-silence path (further above) already skipped admins, but not moderators. This adds the guard in `UserSilencer` itself so staff targets return early before any side effects happen. For added context, in guardian, `def can_silence_user?(user)` checks for `staff`. |
||
|---|---|---|
| .. | ||
| chat | ||
| chat_sdk | ||
| site_setting_extension_spec.rb | ||
| statistics_spec.rb | ||