25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

deny node creation if node owner is not owner of parent node as well

SVN Revision: 2413
This commit is contained in:
Christophe Romain 2009-07-30 22:00:41 +00:00
parent 26ace9829a
commit 6bd9bac716

View File

@ -205,7 +205,7 @@ create_node(Host, Node, Type, Owner, Options) ->
_ ->
case mnesia:read({pubsub_node, {Host, Parent}}) of
[] -> {Parent, false};
_ -> {Parent, true}
_ -> {Parent, lists:member(BJID, Parent#pubsub_node.owners)}
end
end
end,