Fix hometree root check (#1070)
This commit is contained in:
parent
382c6ce1fb
commit
655c22021b
|
@ -160,7 +160,7 @@ create_node(Host, Node, Type, Owner, Options, Parents) ->
|
|||
true;
|
||||
[Parent | _] ->
|
||||
case catch mnesia:read({pubsub_node, {Host, Parent}}) of
|
||||
[#pubsub_node{owners = [{[], Host, []}]}] ->
|
||||
[#pubsub_node{owners = [{<<>>, Host, <<>>}]}] ->
|
||||
true;
|
||||
[#pubsub_node{owners = Owners}] ->
|
||||
lists:member(BJID, Owners);
|
||||
|
|
Loading…
Reference in New Issue