Fix hometree root check (#1070)

This commit is contained in:
Christophe Romain 2016-04-19 15:18:32 +02:00
parent 382c6ce1fb
commit 655c22021b
1 changed files with 1 additions and 1 deletions

View File

@ -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);