For some reason, SuperUser is not given speaking and whisper permissions. That doesn't really work for us, so remove that functionality

This commit is contained in:
Ola Bini 2020-07-16 17:51:54 +00:00
parent c876ee6273
commit 8faaa92404
No known key found for this signature in database
GPG key ID: 6786A150F6A2B28F

View file

@ -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
}