summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2011-05-06 13:58:49 +0200
committerChristophe Romain <christophe.romain@process-one.net>2011-05-06 13:58:49 +0200
commit17abbf3d82d59a5deab11c4be46f254e793a0216 (patch)
tree7a08e432f12de3a3c756757c182f9d38364d72e0 /src
parentTake into consideration internal queue length when sorting processes queues (diff)
Owner can delete any items from its own node (EJAB-1445)
Diffstat (limited to 'src')
-rw-r--r--src/mod_pubsub/node_hometree.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_pubsub/node_hometree.erl b/src/mod_pubsub/node_hometree.erl
index e8e926e5..071a30cc 100644
--- a/src/mod_pubsub/node_hometree.erl
+++ b/src/mod_pubsub/node_hometree.erl
@@ -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),