mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Murmur: Disallow mute/deafen status changes in temporary channels
This commit is contained in:
parent
4bc87820a4
commit
52e27ef37f
@ -507,6 +507,10 @@ void Server::msgUserState(ServerUser *uSource, MumbleProto::UserState &msg) {
|
||||
PERM_DENIED_TYPE(SuperUser);
|
||||
return;
|
||||
}
|
||||
if (uSource->cChannel->bTemporary) {
|
||||
PERM_DENIED_TYPE(TemporaryChannel);
|
||||
return;
|
||||
}
|
||||
if (! hasPermission(uSource, pDstServerUser->cChannel, ChanACL::MuteDeafen) || msg.suppress()) {
|
||||
PERM_DENIED(uSource, pDstServerUser->cChannel, ChanACL::MuteDeafen);
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user