split atat roles and workspace roles

This commit is contained in:
dandds
2018-10-01 15:38:25 -04:00
parent a4f51fe01d
commit 7af7b47bc1
3 changed files with 13 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ from atst.models import Role, Permissions
from .exceptions import NotFoundError
DEFINITIONS = [
ATAT_ROLES = [
{
"name": "ccpo",
"display_name": "CCPO",
@@ -46,6 +46,14 @@ DEFINITIONS = [
Permissions.VIEW_AUDIT_LOG,
],
},
{
"name": "default",
"display_name": "Default",
"description": "",
"permissions": [Permissions.REQUEST_JEDI_WORKSPACE],
},
]
WORKSPACE_ROLES = [
{
"name": "owner",
"display_name": "Workspace Owner",
@@ -139,12 +147,6 @@ DEFINITIONS = [
Permissions.VIEW_APPLICATION_IN_WORKSPACE,
],
},
{
"name": "default",
"display_name": "Default",
"description": "",
"permissions": [Permissions.REQUEST_JEDI_WORKSPACE],
},
]