1
0
mirror of https://github.com/quay/quay.git synced 2025-12-04 08:42:43 +03:00

api: adding endpoints to FEATURE_SUPERUSERS_FULL_ACCESS (PROJQUAY-7045) (#2924)

Adding permissions to additional endpoints when FEATURE_SUPERUSERS_FULL_ACCESS is enabled
This commit is contained in:
Brandon Caton
2024-06-07 14:10:50 -04:00
committed by GitHub
parent 4546163e83
commit d1124350ba
10 changed files with 226 additions and 20 deletions

View File

@@ -145,7 +145,7 @@ class PermissionPrototypeList(ApiResource):
List the existing prototypes for this organization.
"""
permission = AdministerOrganizationPermission(orgname)
if permission.can():
if permission.can() or allow_if_superuser():
try:
org = model.organization.get_organization(orgname)
except model.InvalidOrganizationException: