Skip to content

Commit

Permalink
Allow modification of ACL if you have Write on parent channel.
Browse files Browse the repository at this point in the history
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1558 05730e5d-ab1b-0410-a4ac-84af385074fa
  • Loading branch information
thorvald committed Feb 19, 2009
1 parent 6c6b3b8 commit 2a9dcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/murmur/Messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2a9dcfd

Please sign in to comment.