diff options
author | Munyoki Kilyungi | 2024-02-19 23:20:22 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-03-26 10:01:13 +0300 |
commit | 9f8d47ebf43ee12682842178c6fbc4f9529c5130 (patch) | |
tree | d32294af5893575d0db072a284d093034e8a326e /gn2/wqflask/decorators.py | |
parent | e88e4add3cbb13fcaeacb9bed925e18abaf030f3 (diff) | |
download | genenetwork2-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.py | 2 |
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): |