mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
fix root node deletion match
SVN Revision: 2730
This commit is contained in:
parent
26cd3a78d2
commit
1c4cc57e3f
@ -1847,7 +1847,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, 'not-allowed'};
|
||||
delete_node(Host, Node, Owner) ->
|
||||
|
@ -1658,7 +1658,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, 'not-allowed'};
|
||||
delete_node(Host, Node, Owner) ->
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- mod_pubsub.erl 2009-11-04 20:44:13.000000000 +0100
|
||||
+++ mod_pubsub_odbc.erl 2009-11-04 20:44:13.000000000 +0100
|
||||
--- mod_pubsub.erl 2009-11-05 18:37:16.000000000 +0100
|
||||
+++ mod_pubsub_odbc.erl 2009-11-05 18:37:21.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