# Spoiler for certain user groups?

**URL:** <https://meta.discourse.org/t/spoiler-for-certain-user-groups/146013>\
**Category:** Feature\
**Created:** [March 29, 2020, 11:03am UTC](https://meta.discourse.org/t/spoiler-for-certain-user-groups/146013 "2020-03-29T11:03:02Z")\
**Posts on this page:** 6\
**Page:** 1

## AI-generated summary

The discussion revolves around implementing spoiler functionality in Discourse that is restricted by user groups. [terraboss](/t/-/146013/1) requests a way to hide sensitive content (e.g., pharmaceutical details, passwords, contact info) within posts, visible only to specific user groups, while still allowing general access to the category. [pfaffman](/t/-/146013/2) suggests a plugin to hide parts of posts, similar to spoilers, and offers to modify it. [codinghorror](/t/-/146013/4) questions the need for such a feature, suggesting secure private messages (PMs) as a better alternative. [david](/t/-/146013/6) supports this, recommending encrypted PMs for sensitive information, allowing access control per user or group, and avoiding mixing topics in categories.

<div class="post-metadata">

**Author:** ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/579307_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)\
**Post date:** [March 29, 2020, 11:03am UTC](https://meta.discourse.org/t/spoiler-for-certain-user-groups/146013/1 "2020-03-29T11:03:02Z")

</div>

Hi guys,

I’d like to have a spoiler that is user group privilege sensitive.

There are certain information (e.g. pharmaceutical drugs and doses, solutions, passwords for slack workspaces, contact information, etc, ) that should be only visible for the right eyes. Let’s say, I’d like to have a function to redact (black/blur out) portions of the whole forum. But the idea is, that most users still have access to the category.

What do you think about it?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [March 29, 2020, 2:26pm UTC](https://meta.discourse.org/t/spoiler-for-certain-user-groups/146013/2 "2020-03-29T14:26:07Z")

</div>

I wrote this, for some reason [discourse-hide-old-text/ at master · pfaffman/discourse-hide-old-text · GitHub](https://github.com/pfaffman/discourse-hide-old-text?files=1) that I don’t quite remember. I don’t promise that it’ll be useful, or even work. I think it hides whole posts, though, and not just part of them.

The way that spoilers work the text is in the browser and blurred by css. I think the above plugin could be modified to hide just parts. Feel free to fork it or contact me if you’d like me to modify it for you.

---

<div class="post-metadata">

**Author:** ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/579307_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)\
**Post date:** [March 29, 2020, 3:46pm UTC](https://meta.discourse.org/t/spoiler-for-certain-user-groups/146013/3 "2020-03-29T15:46:05Z")

</div>

Thanks so far for the hint! I’ll keep an eye on that…

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [March 30, 2020, 4:01am UTC](https://meta.discourse.org/t/spoiler-for-certain-user-groups/146013/4 "2020-03-30T04:01:46Z")

</div>

This request doesn’t make any sense to me. Why not link to a post in a secure category, that only the proper groups have access to?

---

<div class="post-metadata">

**Author:** ![terraboss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/terraboss/32/579307_2.png) [@terraboss](https://meta.discourse.org/u/terraboss)\
**Post date:** [March 30, 2020, 8:29am UTC](https://meta.discourse.org/t/spoiler-for-certain-user-groups/146013/5 "2020-03-30T08:29:50Z")

</div>

The categories are for specific topics. I can’t / won’t mix these topics just for specific user groups. This makes no sense and will result in irritations due redundant and (maybe) wrong information.

Something like this would be much better:

`[spoiler]This text will be blurred[/spoiler,user-group]`

And in case, the group was deleted recently, the fallback should be:

1. Only visible for admins (and authors)
2. Admins and moderators should be notified to solve the conflict.

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [March 30, 2020, 8:37am UTC](https://meta.discourse.org/t/spoiler-for-certain-user-groups/146013/6 "2020-03-30T08:37:02Z")

</div>

> [@terraboss](#):
>
> solutions, passwords for slack workspaces, contact information, etc

At Discourse, we link to [encrypted pms](https://meta.discourse.org/t/discourse-encrypt-for-private-messages/107918) for this kind of thing. The PMs are treated as wikis. So we would have a regular topic:

> ### Super secret information
> 
> You will need this when responding to `@terraboss` on Meta. Click to view

And then the link would take you to the encrypted PM. You can control access to the PM per-user, or per-group if you don’t need encryption.
