From: Paweł Chmielowski Date: Thu, 6 Oct 2016 09:03:26 +0000 (+0200) Subject: Use correct field for oauth scope X-Git-Tag: 16.12~25^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b01fbfadf3c5070db09277f0d0d7282e06ae56f8;p=ejabberd Use correct field for oauth scope --- diff --git a/src/ejabberd_access_permissions.erl b/src/ejabberd_access_permissions.erl index 3b88e6ade..766982a01 100644 --- a/src/ejabberd_access_permissions.erl +++ b/src/ejabberd_access_permissions.erl @@ -261,7 +261,7 @@ matches_definition({_Name, {From, Who, What}}, Cmd, Module, Host, CallerInfo) -> true -> case From == [] orelse lists:member(Module, From) of true -> - Scope = maps:get(scope, CallerInfo, none), + Scope = maps:get(oauth_scope, CallerInfo, none), lists:any( fun({access, Access}) when Scope == none -> acl:access_matches(Access, CallerInfo, Host) == allow;