diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2009-09-09 21:40:21 +0000 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2009-09-09 21:40:21 +0000 |
commit | 31c6d6194fee1efab7c57556581ad3b0581d6d0b (patch) | |
tree | 3db870ba95f460b80cc44adf0f403d92b6d6507d /src/mod_pubsub/mod_pubsub.erl | |
parent | Change some error messages. (diff) |
fix delete item to allow owner being able to remove all publisher items, and also fix EJAB-1036
SVN Revision: 2589
Diffstat (limited to 'src/mod_pubsub/mod_pubsub.erl')
-rw-r--r-- | src/mod_pubsub/mod_pubsub.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index be7460492..d8475f749 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -657,6 +657,7 @@ disco_sm_items(Acc, From, To, [], _Lang) -> disco_sm_items(Acc, From, To, Node, _Lang) -> Host = To#jid.lserver, Action = fun(#pubsub_node{type = Type, id = NodeId}) -> + % TODO call get_items/6 instead for access control (EJAB-1033) case node_call(Type, get_items, [NodeId, From]) of {result, []} -> none; @@ -1092,6 +1093,7 @@ iq_disco_items(Host, Item, From) -> %% TODO That is, remove name attribute (or node?, please check for 2.1) Action = fun(#pubsub_node{type = Type, id = NodeId}) -> + % TODO call get_items/6 instead for access control (EJAB-1033) NodeItems = case node_call(Type, get_items, [NodeId, From]) of {result, I} -> I; _ -> [] |