put workspace role definitions in one place
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from atst.domain.roles import DEFINITIONS as ROLE_DEFINITIONS
|
||||
|
||||
SERVICE_BRANCHES = [
|
||||
(None, "Select an option"),
|
||||
("Air Force, Department of the", "Air Force, Department of the"),
|
||||
@@ -104,41 +106,9 @@ COMPLETION_DATE_RANGES = [
|
||||
]
|
||||
|
||||
WORKSPACE_ROLES = [
|
||||
(
|
||||
"owner",
|
||||
{
|
||||
"name": "Workspace Owner",
|
||||
"description": "Adds, edits, deactivates access to all projects, environments, and members. Views budget reports. Initiates and edits JEDI Cloud requests.",
|
||||
},
|
||||
),
|
||||
(
|
||||
"admin",
|
||||
{
|
||||
"name": "Administrator",
|
||||
"description": "Adds and edits projects, environments, members, but cannot deactivate. Cannot view budget reports or JEDI Cloud requests.",
|
||||
},
|
||||
),
|
||||
(
|
||||
"developer",
|
||||
{
|
||||
"name": "Developer",
|
||||
"description": "Views only the projects and environments they are granted access to. Can also view members associated with each environment.",
|
||||
},
|
||||
),
|
||||
(
|
||||
"billing_auditor",
|
||||
{
|
||||
"name": "Billing Auditor",
|
||||
"description": "Views only the projects and environments they are granted access to. Can also view budgets and reports associated with the workspace.",
|
||||
},
|
||||
),
|
||||
(
|
||||
"security_auditor",
|
||||
{
|
||||
"name": "Security Auditor",
|
||||
"description": "Views only the projects and environments they are granted access to. Can also view activity logs.",
|
||||
},
|
||||
),
|
||||
(role["name"], {"name": role["display_name"], "description": role["description"]})
|
||||
for role in ROLE_DEFINITIONS
|
||||
if role["name"] not in ["ccpo", "default"]
|
||||
]
|
||||
|
||||
ENVIRONMENT_ROLES = [
|
||||
|
Reference in New Issue
Block a user