Skip to content

Commit

Permalink
Fix hometree root check (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Romain committed Apr 19, 2016
1 parent 382c6ce commit 655c220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodetree_tree.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 655c220

Please sign in to comment.