update atat-wide permission sets
This commit is contained in:
@@ -16,6 +16,7 @@ class PermissionSets(object):
|
||||
EDIT_PORTFOLIO_REPORTS = "edit_portfolio_reports"
|
||||
EDIT_PORTFOLIO_ADMIN = "edit_portfolio_admin"
|
||||
PORTFOLIO_POC = "portfolio_poc"
|
||||
VIEW_AUDIT_LOG = "view_audit_log"
|
||||
|
||||
@classmethod
|
||||
def get(cls, perms_set_name):
|
||||
@@ -44,19 +45,13 @@ class PermissionSets(object):
|
||||
return permission_sets
|
||||
|
||||
|
||||
ATAT_ROLES = [
|
||||
ATAT_PERMISSION_SETS = [
|
||||
{
|
||||
"name": "ccpo",
|
||||
"display_name": "CCPO",
|
||||
"name": PermissionSets.VIEW_AUDIT_LOG,
|
||||
"display_name": "View Audit Log",
|
||||
"description": "",
|
||||
"permissions": [Permissions.VIEW_AUDIT_LOG],
|
||||
},
|
||||
{
|
||||
"name": "default",
|
||||
"display_name": "Default",
|
||||
"description": "",
|
||||
"permissions": [],
|
||||
},
|
||||
}
|
||||
]
|
||||
|
||||
_PORTFOLIO_BASIC_PERMISSION_SETS = [
|
||||
|
@@ -19,7 +19,6 @@ from atst.utils import pick
|
||||
bp = Blueprint("dev", __name__)
|
||||
|
||||
_ALL_PERMS = [
|
||||
"ccpo",
|
||||
PermissionSets.VIEW_PORTFOLIO,
|
||||
PermissionSets.VIEW_PORTFOLIO_APPLICATION_MANAGEMENT,
|
||||
PermissionSets.VIEW_PORTFOLIO_FUNDING,
|
||||
@@ -30,6 +29,7 @@ _ALL_PERMS = [
|
||||
PermissionSets.EDIT_PORTFOLIO_REPORTS,
|
||||
PermissionSets.EDIT_PORTFOLIO_ADMIN,
|
||||
PermissionSets.PORTFOLIO_POC,
|
||||
PermissionSets.VIEW_AUDIT_LOG,
|
||||
]
|
||||
|
||||
_DEV_USERS = {
|
||||
|
Reference in New Issue
Block a user