commit 712e2acc3f8ea7c8d87aabcb6b9618bda2cacbda
parent 77dbc3603cbb9a766b3bcc20f3610c793043fba8
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Wed, 24 May 2023 23:13:26 -0700
filter for mod chan
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -5069,6 +5069,10 @@ Loop:
msg := msgTyp.Msg
+ if msg.Moderators && !authUser.IsModerator() {
+ continue
+ }
+
if msg.GroupID != nil {
// Verify group authorization
userGroupsIDs, _ := db.GetUserRoomGroupsIDs(authUser.ID, msg.RoomID)