diff options
author | Frederick Muriuki Muriithi | 2023-01-31 04:47:46 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-01-31 05:01:42 +0300 |
commit | 83a8bf8e45951b771b476d2200ed1b69e4904975 (patch) | |
tree | ba34ec0bd1ea006c302807762f37604d1c154cba /gn3/auth/authorisation/resources.py | |
parent | 94b1f5b04bcee2ded0d0cbf11df4101bb86d6ce8 (diff) | |
download | genenetwork3-83a8bf8e45951b771b476d2200ed1b69e4904975.tar.gz |
auth: Remove the @authenticated_p decorator
The @authenticated_p decorator (and function), is an artifact of the original
development ideas and should be removed from use.
Diffstat (limited to 'gn3/auth/authorisation/resources.py')
-rw-r--r-- | gn3/auth/authorisation/resources.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/auth/authorisation/resources.py b/gn3/auth/authorisation/resources.py index 1e37d7a..fe096e8 100644 --- a/gn3/auth/authorisation/resources.py +++ b/gn3/auth/authorisation/resources.py @@ -52,7 +52,7 @@ def create_resource( resource_category: ResourceCategory) -> Resource: """Create a resource item.""" with db.cursor(conn) as cursor: - group = authenticated_user_group(conn).maybe(False, lambda val: val) + group = authenticated_user_group(conn).maybe(False, lambda val: val)# type: ignore[misc] if not group: raise MissingGroupError( "User with no group cannot create a resource.") |