]> granicus.if.org Git - ejabberd/commitdiff
Owner can delete any items from its own node (EJAB-1445)
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 6 May 2011 11:58:49 +0000 (13:58 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 6 May 2011 11:58:49 +0000 (13:58 +0200)
src/mod_pubsub/node_hometree.erl

index e8e926e54c88a2547647929b95d8ce4f30229106..071a30cc3157d57932be3e552a557b0d025cd62f 100644 (file)
@@ -581,10 +581,10 @@ delete_item(NodeIdx, Publisher, PublishModel, ItemId) ->
                false ->
                    case Affiliation of
                        owner ->
-                           %% Owner can delete other publishers items as well
+                           %% Owner can delete any items from its own node
                            {result, States} = get_states(NodeIdx),
                            lists:foldl(
-                               fun(#pubsub_state{items = PI, affiliation = publisher} = S, Res) ->
+                               fun(#pubsub_state{items = PI} = S, Res) ->
                                    case lists:member(ItemId, PI) of
                                        true ->
                                            del_item(NodeIdx, ItemId),