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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user