# Theme component to hide topics if user is in a certain group

**URL:** <https://meta.discourse.org/t/theme-component-to-hide-topics-if-user-is-in-a-certain-group/250887>\
**Category:** Marketplace\
**Created:** [January 5, 2023, 11:23pm UTC](https://meta.discourse.org/t/theme-component-to-hide-topics-if-user-is-in-a-certain-group/250887 "2023-01-05T23:23:32Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![oca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oca/32/156060_2.png) [@oca](https://meta.discourse.org/u/oca)\
**Post date:** [January 9, 2023, 11:18am UTC](https://meta.discourse.org/t/theme-component-to-hide-topics-if-user-is-in-a-certain-group/250887/7 "2023-01-09T11:18:24Z")

</div>

> [@Mark\_Schmucker](#):
>
> If category permissions supported boolean logic, perhaps we could change permissions to allow only users who are members of both ‘premium-group’ and ‘tos-acceptors’. But it doesn’t support that.

A plugin that would allow a _complex permission_ setting for categories would be useful in a lot of situations. That may be the best way to spend dev time for that problem ?

Maybe with a slug formula in a text setting :  
e.g.: `(#tos-acceptor or #direct-concern) and #premium-group`

---

_[View the full topic](https://meta.discourse.org/t/theme-component-to-hide-topics-if-user-is-in-a-certain-group/250887)._
