From 87cc59849a7b779defa9aaed97e4216e449c5fa2 Mon Sep 17 00:00:00 2001 From: Maxime Alves LIRMM Date: Mon, 31 Aug 2020 13:07:59 +0200 Subject: [PATCH] [acl] pass path_params arguments to next function as kwargs --- halfapi/lib/acl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/halfapi/lib/acl.py b/halfapi/lib/acl.py index 8228986..80c8466 100644 --- a/halfapi/lib/acl.py +++ b/halfapi/lib/acl.py @@ -14,7 +14,8 @@ def connected(func): or type(req.user) == UnauthenticatedUser or not hasattr(req.user, 'is_authenticated')): return False - return func(req, **kwargs) + + return func(req, **{**kwargs, **req.path_params}) return caller