aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/decorators.py
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-02-19 23:20:22 +0300
committerBonfaceKilz2024-03-26 10:01:13 +0300
commit9f8d47ebf43ee12682842178c6fbc4f9529c5130 (patch)
treed32294af5893575d0db072a284d093034e8a326e /gn2/wqflask/decorators.py
parente88e4add3cbb13fcaeacb9bed925e18abaf030f3 (diff)
downloadgenenetwork2-9f8d47ebf43ee12682842178c6fbc4f9529c5130.tar.gz
Rename "required_access" to "required_trait_access".
* gn2/wqflask/decorators.py (required_access): Rename this to ... (required_trait_access): ... this. * gn2/wqflask/metadata_edits.py: Ditto. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask/decorators.py')
-rw-r--r--gn2/wqflask/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/decorators.py b/gn2/wqflask/decorators.py
index 848f03ec..e4fb31ff 100644
--- a/gn2/wqflask/decorators.py
+++ b/gn2/wqflask/decorators.py
@@ -62,7 +62,7 @@ class AuthorisationError(Exception):
self.user = user
super().__init__(self, description, user)
-def required_access(access_levels: tuple[str, ...],
+def required_trait_access(access_levels: tuple[str, ...],
dataset_key: str = "dataset_name",
trait_key: str = "name") -> Callable:
def __build_access_checker__(func: Callable):