diff --git a/halfapi/lib/routes.py b/halfapi/lib/routes.py index b2a1db2..ade0409 100644 --- a/halfapi/lib/routes.py +++ b/halfapi/lib/routes.py @@ -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)