# Group specific tool bar

**URL:** <https://meta.discourse.org/t/group-specific-tool-bar/214327>\
**Category:** Theme component\
**Created:** [January 10, 2022, 2:02am UTC](https://meta.discourse.org/t/group-specific-tool-bar/214327 "2022-01-10T02:02:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![th21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th21/32/211915_2.png) [@th21](https://meta.discourse.org/u/th21)\
**Post date:** [January 11, 2022, 8:37pm UTC](https://meta.discourse.org/t/group-specific-tool-bar/214327/5 "2022-01-11T20:37:09Z")

</div>

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

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/f/9ff4871af85ea43b9ab9b4f1112830f8d4b12a9b.png)

Non-logged-in users toolbar

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/e/febe3fc306785277be4c53f2611330828a703b15.png)

User in group A toolbar  
 ![image](https://global.discourse-cdn.com/meta/original/3X/7/7/771c5691083172fd59d819af394e3aeb856174f7.png)

User not in group B toolbar

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/6/c6ef456f7fcb625bee893e1b907c440d10ddb1e5.png)

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

---

_[View the full topic](https://meta.discourse.org/t/group-specific-tool-bar/214327)._
