mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-21 14:17:11 +00:00
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:
parent
37f4944dc2
commit
81dc9a2511
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue