From 8faaa9240402e68e088d4461ade58dd69138dacb Mon Sep 17 00:00:00 2001 From: Ola Bini Date: Thu, 16 Jul 2020 17:51:54 +0000 Subject: [PATCH] For some reason, SuperUser is not given speaking and whisper permissions. That doesn't really work for us, so remove that functionality --- pkg/acl/acl.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/acl/acl.go b/pkg/acl/acl.go index 68e0601..1cd6406 100644 --- a/pkg/acl/acl.go +++ b/pkg/acl/acl.go @@ -94,9 +94,6 @@ func HasPermission(ctx *Context, user User, perm Permission) bool { // SuperUser can't speak or whisper, but everything else is OK if user.UserId() == 0 { - if perm == SpeakPermission || perm == WhisperPermission { - return false - } return true }