Skip to content

Commit f8392d7

Browse files
committed
comments
1 parent 36ebc04 commit f8392d7

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

dojo/authorization/api_permissions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -923,8 +923,7 @@ class UserHasRegulationPermission(BaseDjangoModelPermission):
923923
class UserHasCICDInfrastructurePermission(BaseDjangoModelPermission):
924924
django_model = CICDInfrastructure
925925
# Reads are open to any authenticated user (engagement views surface CICD
926-
# references and need to render them). Writes require the configuration
927-
# permission — superuser/staff on OS, full RBAC under Pro shadowing.
926+
# references and need to render them). Writes require elevated privileges.
928927
request_method_permission_map = {
929928
"POST": "add",
930929
"PUT": "change",

unittests/test_cicd_infrastructure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ class CICDInfrastructureAPITests(APITestCase):
128128

129129
"""
130130
The /cicd_infrastructure endpoint uses UserHasCICDInfrastructurePermission
131-
— reads are open to any authenticated user; writes require the configuration
132-
permission (superuser/staff on OS, full RBAC under Pro).
131+
— reads are open to any authenticated user; writes require elevated privileges.
133132
"""
134133

135134
fixtures = ["dojo_testdata.json"]

0 commit comments

Comments
 (0)