Fixing modlog filtering to allow admins and mods to filter by mod. (#2629)

- Fixes #2590

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
This commit is contained in:
Dessalines 2024-07-23 16:24:19 -04:00 committed by GitHub
parent 37f4944dc2
commit 81dc9a2511
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -907,8 +907,9 @@ export class Modlog extends Component<ModlogRouteProps, ModlogState> {
options={userSearchOptions} options={userSearchOptions}
loading={loadingUserSearch} loading={loadingUserSearch}
/> />
{!this.isoData.site_res.site_view.local_site {(this.amAdminOrMod ||
.hide_modlog_mod_names && ( !this.isoData.site_res.site_view.local_site
.hide_modlog_mod_names) && (
<Filter <Filter
filterType="mod" filterType="mod"
onChange={this.handleModChange} onChange={this.handleModChange}