mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Fix privacy check when serving local Last (thanks to Brian Acton)(EJAB-1271)
This commit is contained in:
parent
1531541331
commit
d9e2931ed9
@ -127,7 +127,7 @@ process_sm_iq(From, To, #iq{type = Type, sub_el = SubEl} = IQ) ->
|
|||||||
[User, Server, UserListRecord,
|
[User, Server, UserListRecord,
|
||||||
{From, To,
|
{From, To,
|
||||||
{xmlelement, "presence", [], []}},
|
{xmlelement, "presence", [], []}},
|
||||||
out]) of
|
in]) of
|
||||||
allow ->
|
allow ->
|
||||||
get_last(IQ, SubEl, User, Server);
|
get_last(IQ, SubEl, User, Server);
|
||||||
deny ->
|
deny ->
|
||||||
|
@ -119,7 +119,7 @@ process_sm_iq(From, To, #iq{type = Type, sub_el = SubEl} = IQ) ->
|
|||||||
[User, Server, UserListRecord,
|
[User, Server, UserListRecord,
|
||||||
{From, To,
|
{From, To,
|
||||||
{xmlelement, "presence", [], []}},
|
{xmlelement, "presence", [], []}},
|
||||||
out]) of
|
in]) of
|
||||||
allow ->
|
allow ->
|
||||||
get_last(IQ, SubEl, User, Server);
|
get_last(IQ, SubEl, User, Server);
|
||||||
deny ->
|
deny ->
|
||||||
|
Loading…
Reference in New Issue
Block a user