mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
fix unsubscription of full jid subscribed node (EJAB-839)
SVN Revision: 1795
This commit is contained in:
parent
98f51dc91f
commit
36080fb682
@ -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>
|
2009-01-09 Pablo Polvorin <pablo.polvorin@process-one.net>
|
||||||
|
|
||||||
* src/mod_muc/mod_muc_room.erl, src/mod_muc/mod_muc.erl
|
* src/mod_muc/mod_muc_room.erl, src/mod_muc/mod_muc.erl
|
||||||
|
@ -374,7 +374,7 @@ unsubscribe_node(Host, Node, Sender, Subscriber, _SubId) ->
|
|||||||
(not Authorized) and (Affiliation =/= owner) ->
|
(not Authorized) and (Affiliation =/= owner) ->
|
||||||
{error, 'forbidden'};
|
{error, 'forbidden'};
|
||||||
%% Was just subscriber, remove the record
|
%% Was just subscriber, remove the record
|
||||||
Affiliation == none ->
|
SubState#pubsub_state.affiliation == none ->
|
||||||
del_state(SubState#pubsub_state.stateid),
|
del_state(SubState#pubsub_state.stateid),
|
||||||
{result, default};
|
{result, default};
|
||||||
true ->
|
true ->
|
||||||
|
Loading…
Reference in New Issue
Block a user