# מחלקות CSS עבור קבוצות נוכחיות שיכולות להציג נושא?

**URL:** <https://meta.discourse.org/t/css-classes-for-current-groups-who-can-view-topic/227221>\
**Category:** Feature\
**Created:** [16 במאי,‏ 2022,‏ 5:12pm UTC](https://meta.discourse.org/t/css-classes-for-current-groups-who-can-view-topic/227221 "2022-05-16T17:12:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)\
**Post date:** [16 במאי,‏ 2022,‏ 5:12pm UTC](https://meta.discourse.org/t/css-classes-for-current-groups-who-can-view-topic/227221/1 "2022-05-16T17:12:49Z")

</div>

Continuing the discussion from [CSS classes for current user's groups](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068):

As the forums I build have more and more complex privacy settings, I really like the idea of making it more visible to people who can see what is being posted.

I like this concept, [Display Posts Visibility](https://meta.discourse.org/t/display-posts-visibility/181878), and wish I could take it further to show exactly which groups can see which topics.

Right now, [Display Posts Visibility](https://meta.discourse.org/t/display-posts-visibility/181878) uses `.archetype-regular` and `.archetype-private_message` to show fully public vs fully private messages, but uses `.read-restricted` to show the ones that are restricted by groups. But since `.read-restricted` is not precise, it seems hard to figure out which groups can view the current topic.

If the CSS classes were there for which groups can see it, then it’d be a lot easier to style the page to make it more obvious to people.

Maybe it’s a simple theme component, like [CSS Classes for Current User's Groups](https://meta.discourse.org/t/css-classes-for-current-users-groups/226068), but I can’t seem to find something in the [discourse/app/assets/javascripts/discourse/app/lib/plugin-api.js at 99a6f32554e43a15da491c0e4db28a3537e98358 · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/99a6f32554e43a15da491c0e4db28a3537e98358/app/assets/javascripts/discourse/app/lib/plugin-api.js) to get the current groups that are able to view the topic.

Any ideas?

---

_[View the full topic](https://meta.discourse.org/t/css-classes-for-current-groups-who-can-view-topic/227221)._
