25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

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

SVN Revision: 1795
This commit is contained in:
Christophe Romain 2009-01-10 13:40:38 +00:00
parent 98f51dc91f
commit 36080fb682
2 changed files with 6 additions and 1 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 Pablo Polvorin <pablo.polvorin@process-one.net>
* src/mod_muc/mod_muc_room.erl, src/mod_muc/mod_muc.erl

View File

@ -374,7 +374,7 @@ unsubscribe_node(Host, Node, Sender, Subscriber, _SubId) ->
(not Authorized) and (Affiliation =/= owner) ->
{error, 'forbidden'};
%% Was just subscriber, remove the record
Affiliation == none ->
SubState#pubsub_state.affiliation == none ->
del_state(SubState#pubsub_state.stateid),
{result, default};
true ->