mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Respect privacy lists for incoming PEP messages
This commit is contained in:
parent
ab12270837
commit
c566b1d01e
@ -1755,7 +1755,13 @@ handle_info({send_filtered, Feature, From, To, Packet}, StateName, StateData) ->
|
|||||||
FinalPacket = jlib:replace_from_to(From, To, Packet),
|
FinalPacket = jlib:replace_from_to(From, To, Packet),
|
||||||
case StateData#state.jid of
|
case StateData#state.jid of
|
||||||
To ->
|
To ->
|
||||||
send_packet(StateData, FinalPacket);
|
case privacy_check_packet(StateData, From, To,
|
||||||
|
FinalPacket, in) of
|
||||||
|
deny ->
|
||||||
|
StateData;
|
||||||
|
allow ->
|
||||||
|
send_stanza(StateData, FinalPacket)
|
||||||
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
ejabberd_router:route(From, To, FinalPacket),
|
ejabberd_router:route(From, To, FinalPacket),
|
||||||
StateData
|
StateData
|
||||||
|
Loading…
Reference in New Issue
Block a user