]> granicus.if.org Git - ejabberd/commitdiff
mod_roster: Use 'lserver' for configuration lookup
authorHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 12 Apr 2018 22:12:07 +0000 (00:12 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Thu, 12 Apr 2018 22:12:07 +0000 (00:12 +0200)
src/mod_roster.erl

index d912a14468bfce487dd724597bf2010c2f9054f8..d35b7dc97f7882b66ef7b3d482f3cc7c26007cf0 100644 (file)
@@ -173,9 +173,9 @@ process_local_iq(#iq{type = set, from = From, lang = Lang,
            Txt = <<"Duplicated groups are not allowed by RFC6121">>,
            xmpp:make_error(IQ, xmpp:err_bad_request(Txt, Lang));
        false ->
-           #jid{server = Server} = From,
-           Access = gen_mod:get_module_opt(Server, ?MODULE, access),
-           case acl:match_rule(Server, Access, From) of
+           #jid{lserver = LServer} = From,
+           Access = gen_mod:get_module_opt(LServer, ?MODULE, access),
+           case acl:match_rule(LServer, Access, From) of
                deny ->
                    Txt = <<"Access denied by service policy">>,
                    xmpp:make_error(IQ, xmpp:err_not_allowed(Txt, Lang));