Skip to content

Commit 2cf91ec

Browse files
Maffoochclaude
andcommitted
fix: make CICDInfrastructure a grantable configuration permission
CICDInfrastructure was never added to get_configuration_permissions_fields(), so its view/add/change/delete codenames never reached a user's configuration permissions. Non-superusers could not be granted access and the new CI/CD Infrastructure UI/menu was effectively superuser-only, unlike the Tool_Configuration it replaces. Register it (with a "CI/CD Infrastructure" display name) so it is grantable like every other configuration model. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f95c986 commit 2cf91ec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dojo/user/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def __init__(self, *args, **kwargs):
1414
self.delete = kwargs.pop("delete", False)
1515

1616
def display_name(self):
17+
if self.name == "cicdinfrastructure":
18+
return "CI/CD Infrastructure"
1719
if self.name == "bannerconf":
1820
return "Login Banner"
1921
if self.name == "github conf":
@@ -87,6 +89,7 @@ def get_configuration_permissions_fields():
8789

8890
rules_permissions = []
8991
return [
92+
Permission_Helper(name="cicdinfrastructure", app="dojo", view=True, add=True, change=True, delete=True),
9093
Permission_Helper(name="development environment", app="dojo", add=True, change=True, delete=True),
9194
Permission_Helper(name="finding template", app="dojo", view=True, add=True, change=True, delete=True),
9295
*github_permissions,

0 commit comments

Comments
 (0)