From 65e0d09ff81914652dd27ffa2afa709b517e7434 Mon Sep 17 00:00:00 2001 From: Maxime Alves LIRMM Date: Tue, 7 Jul 2020 11:10:38 +0200 Subject: [PATCH] =?UTF-8?q?[middleware]=C2=A0removed=20decorator=20from=20?= =?UTF-8?q?acl=5Fmiddleware?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- halfapi/lib/acl_middleware.py | 1 - 1 file changed, 1 deletion(-) diff --git a/halfapi/lib/acl_middleware.py b/halfapi/lib/acl_middleware.py index e575a65..7dfd629 100644 --- a/halfapi/lib/acl_middleware.py +++ b/halfapi/lib/acl_middleware.py @@ -2,7 +2,6 @@ from starlette.requests import Request from starlette.exceptions import HTTPException -@app.middleware('http') async def acl_middleware(request: Request, call_next): """ Checks the "acls" key in the scope and applies the corresponding functions in the current module's acl lib.