aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-02-20 01:04:18 +0300
committerBonfaceKilz2024-03-26 10:01:13 +0300
commit05cfb8f38985a0f636b7a4d50c64740c667a230e (patch)
tree27e05660b4eaa89a8a4a879a48b614bc491e81b7 /gn2/wqflask
parent798f3e9e01061e18c02064538e77650f57bbba69 (diff)
downloadgenenetwork2-05cfb8f38985a0f636b7a4d50c64740c667a230e.tar.gz
Correctly wrap the "__build_access_checker__" function.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/decorators.py1
1 files changed, 1 insertions, 0 deletions
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):