Continuing the discussion from CSS classes for current user's groups:
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, and wish I could take it further to show exactly which groups can see which topics.
Right now, Display Posts Visibility 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, 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 to get the current groups that are able to view the topic.
Any ideas?