mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
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:
parent
c876ee6273
commit
8faaa92404
1 changed files with 0 additions and 3 deletions
|
|
@ -94,9 +94,6 @@ func HasPermission(ctx *Context, user User, perm Permission) bool {
|
||||||
|
|
||||||
// SuperUser can't speak or whisper, but everything else is OK
|
// SuperUser can't speak or whisper, but everything else is OK
|
||||||
if user.UserId() == 0 {
|
if user.UserId() == 0 {
|
||||||
if perm == SpeakPermission || perm == WhisperPermission {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue