mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
deny node creation if node owner is not owner of parent node as well
SVN Revision: 2413
This commit is contained in:
parent
26ace9829a
commit
6bd9bac716
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user