Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to prevent groups from being created?

31 views
Skip to first unread message

Rainbow

unread,
Sep 11, 2023, 4:50:03 AM9/11/23
to Tinode General
How to prevent ordinary users from creating groups? Or ban groups altogether from being created? Thanks for the help!

Gene

unread,
Sep 11, 2023, 12:04:43 PM9/11/23
to Tinode General
The only way to do it right now is to deploy a plugin:


Listen for {sub topic=new} messages and reject them.

Rainbow

unread,
Sep 12, 2023, 4:05:34 AM9/12/23
to Tinode General
I think it is also possible to directly modify the func initTopicNewGrp(t *Topic, sreg *ClientComMessage, isChan bool) error function:

if authLevel != auth.LevelRoot { return types.ErrPermissionDenied }

I added the following code so that only ROOT users can create groups, which seems to solve the problem, haha.

Reply all
Reply to author
Forward
0 new messages