mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Allow modification of ACL if you have Write on parent channel.
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1558 05730e5d-ab1b-0410-a4ac-84af385074fa
This commit is contained in:
parent
6c6b3b89fe
commit
2a9dcfde4e
@ -713,7 +713,7 @@ void Server::msgEditACL(Connection *cCon, MessageEditACL *msg) {
|
||||
if (!c)
|
||||
return;
|
||||
|
||||
if (! hasPermission(uSource, c, ChanACL::Write)) {
|
||||
if (! hasPermission(uSource, c, ChanACL::Write) && !(c->cParent && hasPermission(uSource, c->cParent, ChanACL::Write))) {
|
||||
PERM_DENIED(uSource, c, ChanACL::Write);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user