mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-06 21:37:17 +02:00
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;
|
true;
|
||||||
[Parent | _] ->
|
[Parent | _] ->
|
||||||
case catch mnesia:read({pubsub_node, {Host, Parent}}) of
|
case catch mnesia:read({pubsub_node, {Host, Parent}}) of
|
||||||
[#pubsub_node{owners = [{[], Host, []}]}] ->
|
[#pubsub_node{owners = [{<<>>, Host, <<>>}]}] ->
|
||||||
true;
|
true;
|
||||||
[#pubsub_node{owners = Owners}] ->
|
[#pubsub_node{owners = Owners}] ->
|
||||||
lists:member(BJID, Owners);
|
lists:member(BJID, Owners);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user