diff options
| author | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-09-01 10:56:21 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-09-01 11:01:09 -0500 |
| commit | 1cf8351219ebf59bdec38dff741c726deb2bb368 (patch) | |
| tree | 8bea08faa89ad314903d1500657a6b1fec7a65b8 /gn_auth/auth/authorisation/data | |
| parent | aab9408e8c1641c0552e51e1c9f6ebd8804f00cc (diff) | |
| download | gn-auth-1cf8351219ebf59bdec38dff741c726deb2bb368.tar.gz | |
Bugfix: Use correct spec strings.
These bugs were introduced by Claude, and I missed them during review.
Diffstat (limited to 'gn_auth/auth/authorisation/data')
| -rw-r--r-- | gn_auth/auth/authorisation/data/phenotypes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/data/phenotypes.py b/gn_auth/auth/authorisation/data/phenotypes.py index 08d225d..bc9a6f7 100644 --- a/gn_auth/auth/authorisation/data/phenotypes.py +++ b/gn_auth/auth/authorisation/data/phenotypes.py @@ -102,13 +102,13 @@ def link_phenotype_data( authconn, user.user_id, system_resource(authconn).resource_id, - "system:data:link-to-group") + "(AND system:data:link-to-group)") or authorised_for_spec( authconn, user.user_id, group_resource(authconn, group.group_id).resource_id, - "group:data:link-to-group") + "(AND group:data:link-to-group)") ): raise AuthorisationError( "You do not have sufficient privileges to link data to group " |
