From 05cfb8f38985a0f636b7a4d50c64740c667a230e Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 20 Feb 2024 01:04:18 +0300 Subject: Correctly wrap the "__build_access_checker__" function. Signed-off-by: Munyoki Kilyungi --- gn2/wqflask/decorators.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gn2/wqflask/decorators.py b/gn2/wqflask/decorators.py index e4fb31ff..54fde586 100644 --- a/gn2/wqflask/decorators.py +++ b/gn2/wqflask/decorators.py @@ -65,6 +65,7 @@ class AuthorisationError(Exception): def required_trait_access(access_levels: tuple[str, ...], dataset_key: str = "dataset_name", trait_key: str = "name") -> Callable: + @wraps(required_trait_access) def __build_access_checker__(func: Callable): @wraps(func) def __checker__(*args, **kwargs): -- cgit 1.4.1