Group specific tool bar

There are priorities in settings from top to bottom, e.g. I’m an admin(group set 1) and I’m also part of group A(group set 2), I got ONLY toolbar for admin.

Basically, it checks in order for whether a user belongs to group set 1 or 2, if not, check if they are excluded from the excluded group. Non-logged-in user doesn’t have group settings so they are checked separately.

My admin toolbar

Non-logged-in users toolbar

User in group A toolbar
image

User not in group B toolbar

*the icon color and suffix text αre not included in this component, I add extra css.

4 Likes