]> granicus.if.org Git - ejabberd/commitdiff
Fix privacy check when serving local Last (thanks to Brian Acton)(EJAB-1271)
authorBadlop <badlop@process-one.net>
Tue, 29 Jun 2010 09:57:54 +0000 (11:57 +0200)
committerBadlop <badlop@process-one.net>
Tue, 29 Jun 2010 09:58:05 +0000 (11:58 +0200)
src/mod_last.erl
src/mod_last_odbc.erl

index 73d908f8dfefe2132dd03b69704ff6ed5adb03f1..d3b561f602107a895555b5ec36db47fb81e00bd1 100644 (file)
@@ -127,7 +127,7 @@ process_sm_iq(From, To, #iq{type = Type, sub_el = SubEl} = IQ) ->
                           [User, Server, UserListRecord,
                            {From, To,
                             {xmlelement, "presence", [], []}},
-                           out]) of
+                           in]) of
                        allow ->
                            get_last(IQ, SubEl, User, Server);
                        deny ->
index 5d6aac2b116ec01839f87e9f8afc399c2c52483d..7616c50205bc113849145f7440931b5e2d51b30e 100644 (file)
@@ -119,7 +119,7 @@ process_sm_iq(From, To, #iq{type = Type, sub_el = SubEl} = IQ) ->
                           [User, Server, UserListRecord,
                            {From, To,
                             {xmlelement, "presence", [], []}},
-                           out]) of
+                           in]) of
                        allow ->
                            get_last(IQ, SubEl, User, Server);
                        deny ->