Use correct field for oauth scope
This commit is contained in:
parent
438dbc8bda
commit
b01fbfadf3
|
@ -261,7 +261,7 @@ matches_definition({_Name, {From, Who, What}}, Cmd, Module, Host, CallerInfo) ->
|
||||||
true ->
|
true ->
|
||||||
case From == [] orelse lists:member(Module, From) of
|
case From == [] orelse lists:member(Module, From) of
|
||||||
true ->
|
true ->
|
||||||
Scope = maps:get(scope, CallerInfo, none),
|
Scope = maps:get(oauth_scope, CallerInfo, none),
|
||||||
lists:any(
|
lists:any(
|
||||||
fun({access, Access}) when Scope == none ->
|
fun({access, Access}) when Scope == none ->
|
||||||
acl:access_matches(Access, CallerInfo, Host) == allow;
|
acl:access_matches(Access, CallerInfo, Host) == allow;
|
||||||
|
|
Loading…
Reference in New Issue