Using CSS to hide specific elements based on user role

Hello and welcome @UnitedFreedom :slight_smile:

Any CSS changes would only be cosmetic, and could easily be sidestepped by tweaking the page in the browser console. However…

Just to put your mind at ease, Moderators don’t have unfettered access to Personal Messages, they can only view them if someone flags one. :+1: (As opposed to Admins, who can see everything on the site)

I don’t think the reports are particularly sensitive and can be quite useful for moderators to have access to, but there are a couple of admin settings that target the report/dashboard area that you may find useful (though they would apply to both Mods and Admin):

  • You can hide the Reports tab without using custom CSS by using the dashboard visible tabs admin setting (though they could still access the page using the /admin/dashboard/reports link.
  • The dashboard hidden reports admin setting can remove specific reports from the list (you’d need to use their names, which you can get from their URL. eg Admin Logins would be staff_logins)
  • You can choose what to display on the dashboard using dashboard general tab activity metrics

There are also a few extra admin settings that are disabled by default, but would allow moderators to view emails, change post ownership, and create and manage categories and groups:

However, if you think full mods have too much power for your site you could opt for Category Moderation instead. This would elevate certain groups to have enhanced powers for specific categories. They would have access to the Review Queue for flags and post approvals for their categories, as well as edit, delete, split, merge, etc but not have the full suite of powers and access a Moderator would have.

You can see an overview of the differences in Trust Level Permissions Table (inc Moderator Roles)

You can enable Category Moderation using the enable category group moderation admin setting, and then setting a group per category in the Settings tab of the category wrench menu:

Making some highly trusted users TL4s can also be really useful to assist with moderation too.

7 Likes