Make a group visible by user with a other group

Exemple :
master group (visible by himself):

  • group_1 (visible by user from group_1)

so far so good…

And my request is here :
Subgroups :

  • sub_group_1 (only visible by user from group_1)

The objective is that only users of group_1 can mention/view/join user of sub_group_1

It’s not possible actualy ?
if I want to add this functionality, should I modify discourse or make a plugin?

1 Like

Make a plugin.

To find the stuff you need to override, you’ll look in the groups_controller.rb and, I think, see about overriding the guardian for what groups can be mentioned.

2 Likes

Thank you :slight_smile:

1 Like
  • i see groups_controller.rb. but i dont know how to owerride functions in my plugin…

And

  • An idea to inject a tab actions in groups manage admin screen ?