[acl] pass path_params arguments to next function as kwargs

This commit is contained in:
Maxime Alves LIRMM 2020-08-31 13:07:59 +02:00
parent 1b40b95d19
commit 87cc59849a
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ def connected(func):
or type(req.user) == UnauthenticatedUser or type(req.user) == UnauthenticatedUser
or not hasattr(req.user, 'is_authenticated')): or not hasattr(req.user, 'is_authenticated')):
return False return False
return func(req, **kwargs)
return func(req, **{**kwargs, **req.path_params})
return caller return caller