Fixing modlog filtering to allow admins and mods to filter by mod.

- Fixes #2590
This commit is contained in:
Dessalines 2024-07-23 14:09:50 -04:00
parent 4a65fd888d
commit e4668362c0

View file

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