25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-02 16:37:52 +01:00

fix unsubscription of full jid subscribed node (EJAB-839)

SVN Revision: 1793
This commit is contained in:
Christophe Romain 2009-01-10 13:35:34 +00:00
parent 053f45ab39
commit 6e04bcbbf8
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-01-10 Christophe Romain <christophe.romain@process-one.net>
* src/mod_pubsub/node_default.erl: fix unsubscription of full jid
subscribed node (thanks to Andy Skelton)(EJAB-839)
2009-01-09 Badlop <badlop@process-one.net>
* doc/release_notes_2.0.3.txt: New file for new release

View File

@ -367,11 +367,10 @@ unsubscribe_node(Host, Node, Sender, Subscriber, _SubId) ->
(not Authorized) and (Affiliation =/= owner) ->
{error, ?ERR_FORBIDDEN};
%% Was just subscriber, remove the record
Affiliation == none ->
SubState#pubsub_state.affiliation == none ->
del_state(SubState#pubsub_state.stateid),
{result, default};
true ->
%% TODO, may require better clean
set_state(SubState#pubsub_state{subscription = none}),
{result, default}
end.