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.
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 ->
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 ->