The discussion revolves around implementing spoiler functionality in Discourse that is restricted by user groups. terraboss 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 suggests a plugin to hide parts of posts, similar to spoilers, and offers to modify it. codinghorror questions the need for such a feature, suggesting secure private messages (PMs) as a better alternative. david supports this, recommending encrypted PMs for sensitive information, allowing access control per user or group, and avoiding mixing topics in categories.
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.
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.
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:
Only visible for admins (and authors)
Admins and moderators should be notified to solve the conflict.