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:
parent
053f45ab39
commit
6e04bcbbf8
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user