mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
fix root node deletion match
SVN Revision: 2729
This commit is contained in:
parent
b9f911554c
commit
09e847b97d
@ -1805,7 +1805,7 @@ create_node(Host, ServerHost, Node, Owner, GivenType, Access, Configuration) ->
|
||||
%%<li>The node is the root collection node, which cannot be deleted.</li>
|
||||
%%<li>The specified node does not exist.</li>
|
||||
%%</ul>
|
||||
delete_node(_Host, [], _Owner) ->
|
||||
delete_node(_Host, <<>>, _Owner) ->
|
||||
%% Node is the root
|
||||
{error, ?ERR_NOT_ALLOWED};
|
||||
delete_node(Host, Node, Owner) ->
|
||||
|
@ -1615,7 +1615,7 @@ create_node(Host, ServerHost, Node, Owner, GivenType, Access, Configuration) ->
|
||||
%%<li>The node is the root collection node, which cannot be deleted.</li>
|
||||
%%<li>The specified node does not exist.</li>
|
||||
%%</ul>
|
||||
delete_node(_Host, [], _Owner) ->
|
||||
delete_node(_Host, <<>>, _Owner) ->
|
||||
%% Node is the root
|
||||
{error, ?ERR_NOT_ALLOWED};
|
||||
delete_node(Host, Node, Owner) ->
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- mod_pubsub.erl 2009-11-04 20:40:18.000000000 +0100
|
||||
+++ mod_pubsub_odbc.erl 2009-11-04 20:40:18.000000000 +0100
|
||||
--- mod_pubsub.erl 2009-11-05 18:36:05.000000000 +0100
|
||||
+++ mod_pubsub_odbc.erl 2009-11-05 18:36:16.000000000 +0100
|
||||
@@ -42,7 +42,7 @@
|
||||
%%% 6.2.3.1, 6.2.3.5, and 6.3. For information on subscription leases see
|
||||
%%% XEP-0060 section 12.18.
|
||||
|
Loading…
Reference in New Issue
Block a user