[routes] Fix func -> fct.

This commit is contained in:
Joël Maïzi 2020-07-30 11:06:36 +02:00
parent f28e11e051
commit b8f1d3a35e
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def get_routes(domains=None):
for acl_fct_name in acls:
acl_fct = getattr(acls_mod, acl_fct_name)
if acl_fct(req, *args, **kwargs):
return func(req, *args, **kwargs)
return fct(req, *args, **kwargs)
raise HTTPException(401)