24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

Correct privacy check direction in mod_last (EJAB-1339)

The change for EJAB-1271 to change the direction of the privacy check
from out to in violates the idea that the check should imitate a
subscription state check of from. Rather correct the order of the From
and To parameters.
This commit is contained in:
Andreas Köhler 2010-11-05 11:42:32 +01:00 committed by Badlop
parent 79f5251d69
commit 7c2b9eaf97
2 changed files with 4 additions and 4 deletions

View File

@ -125,9 +125,9 @@ process_sm_iq(From, To, #iq{type = Type, sub_el = SubEl} = IQ) ->
privacy_check_packet, Server,
allow,
[User, Server, UserListRecord,
{From, To,
{To, From,
{xmlelement, "presence", [], []}},
in]) of
out]) of
allow ->
get_last(IQ, SubEl, User, Server);
deny ->

View File

@ -117,9 +117,9 @@ process_sm_iq(From, To, #iq{type = Type, sub_el = SubEl} = IQ) ->
privacy_check_packet, Server,
allow,
[User, Server, UserListRecord,
{From, To,
{To, From,
{xmlelement, "presence", [], []}},
in]) of
out]) of
allow ->
get_last(IQ, SubEl, User, Server);
deny ->