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: 1794
This commit is contained in:
parent
91897882d2
commit
38dcae1fc8
@ -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/guide.tex: Improve explanation of backup commands (EJAB-832)
|
||||
|
@ -372,11 +372,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