Hide some preference sub-tabs under the user profile?

Hi Jeff :slight_smile:

You could first install CSS Classes for Current User's Groups, then use the added classes to hide these elements with CSS:

body:not(.staff) {
    .user-nav__preferences-security,
    .user-nav__preferences-emails,
    .user-nav__preferences-tracking,
    .user-nav__preferences-users {
        display: none !important;
    }    
}

Note that with this component, admins don’t have a specific class. It would require additional javascript. Staff means admins and moderators.

Also, users with basic related knowledge can circumvent such client-side modification.

3 Likes