[acl] pass path_params arguments to next function as kwargs
This commit is contained in:
parent
1b40b95d19
commit
87cc59849a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue