# Check for group membership in Header code?

**URL:** <https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642>\
**Category:** UX\
**Created:** [23 أكتوبر 2017، 9:03م UTC](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642 "2017-10-23T21:03:24Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [12 مارس 2019، 12:39م UTC](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642/17 "2019-03-12T12:39:25Z")

</div>

> [@Cozdabuch](#):
>
> I want the category contents invisible to the admin(s), but visable to the members of the a specific group:

You should have a second non-admin account for that purpose.

> [@Cozdabuch](#):
>
> This part doesn’t work:

It should be the primary group of that user. Also make sure the order is correct.

---

_[View the full topic](https://meta.discourse.org/t/check-for-group-membership-in-header-code/72642)._
