Skip to content

Commit

Permalink
Merge pull request #9 from bitovi/namespace-permissions
Browse files Browse the repository at this point in the history
fixing decryption authorization for global admins
  • Loading branch information
phillipskevin authored Aug 26, 2024
2 parents 7f07af2 + 282110f commit 83ea468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encryption_jwt/codec_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def decryption_authorized(email: str, namespace: str) -> bool:
authorized = False
for user in response.users:
if user.spec.email.lower() == email.lower():
if user.spec.access.account_access in AUTHORIZED_ACCOUNT_ACCESS_ROLES:
if user.spec.access.account_access.role in AUTHORIZED_ACCOUNT_ACCESS_ROLES:
authorized = True
else:
if namespace in user.spec.access.namespace_accesses:
Expand Down

0 comments on commit 83ea468

Please sign in to comment.