lists:any(
fun({access, Access}) when Scope == none ->
acl:access_matches(Access, CallerInfo, Host) == allow;
- ({acl, _} = Acl) when Scope == none ->
+ ({acl, Acl}) when Scope == none ->
acl:acl_rule_matches(Acl, CallerInfo, Host);
({oauth, Scopes, List}) when Scope /= none ->
case ejabberd_oauth:scope_in_scope_list(Scope, Scopes) of
lists:any(
fun({access, Access}) ->
acl:access_matches(Access, CallerInfo, Host) == allow;
- ({acl, _} = Acl) ->
+ ({acl, Acl} = Acl) ->
acl:acl_rule_matches(Acl, CallerInfo, Host)
end, List);
_ ->
{scope, ScopeList2}
end;
(Atom) when is_atom(Atom) ->
- {acl, Atom};
+ {acl, {acl, Atom}};
([Other]) ->
try acl:normalize_spec(Other) of
Rule2 ->