GUI bugfix: hide online/offline filter items if user is not admin
[Platform usage] Show user statuses - Do not display **Show online users**, **Show offline users** options for non-admin users
* hide online/offline filter items from filters dropdown
* fixes
@@ -299,18 +299,22 @@ export default class UsersManagement extends React.Component {
>
Show blocked users
</Select.Option>
+ { this.isAdmin && (
<Select.Option
key={USERS_FILTERS.online}
value={USERS_FILTERS.online}
>
Show online users
- </Select.Option>
+ </Select.Option>)
+ }
+ { this.isAdmin && (
<Select.Option
key={USERS_FILTERS.offline}
value={USERS_FILTERS.offline}
>
Show offline users
- </Select.Option>
+ </Select.Option>)
+ }
</Select>
{
this.isAdmin && (
