[routes] Fix func -> fct.
This commit is contained in:
parent
f28e11e051
commit
b8f1d3a35e
|
@ -39,7 +39,7 @@ def get_routes(domains=None):
|
||||||
for acl_fct_name in acls:
|
for acl_fct_name in acls:
|
||||||
acl_fct = getattr(acls_mod, acl_fct_name)
|
acl_fct = getattr(acls_mod, acl_fct_name)
|
||||||
if acl_fct(req, *args, **kwargs):
|
if acl_fct(req, *args, **kwargs):
|
||||||
return func(req, *args, **kwargs)
|
return fct(req, *args, **kwargs)
|
||||||
|
|
||||||
raise HTTPException(401)
|
raise HTTPException(401)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue