Update name of permission
This commit is contained in:
parent
083896a689
commit
9cf72e9466
@ -17,7 +17,7 @@ class PermissionSets(object):
|
|||||||
EDIT_PORTFOLIO_ADMIN = "edit_portfolio_admin"
|
EDIT_PORTFOLIO_ADMIN = "edit_portfolio_admin"
|
||||||
PORTFOLIO_POC = "portfolio_poc"
|
PORTFOLIO_POC = "portfolio_poc"
|
||||||
VIEW_AUDIT_LOG = "view_audit_log"
|
VIEW_AUDIT_LOG = "view_audit_log"
|
||||||
EDIT_CCPO_USERS = "edit_ccpo_users"
|
MANAGE_CCPO_USERS = "manage_ccpo_users"
|
||||||
|
|
||||||
VIEW_APPLICATION = "view_application"
|
VIEW_APPLICATION = "view_application"
|
||||||
EDIT_APPLICATION_ENVIRONMENTS = "edit_application_environments"
|
EDIT_APPLICATION_ENVIRONMENTS = "edit_application_environments"
|
||||||
@ -59,7 +59,7 @@ ATAT_PERMISSION_SETS = [
|
|||||||
"permissions": [Permissions.VIEW_AUDIT_LOG],
|
"permissions": [Permissions.VIEW_AUDIT_LOG],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": PermissionSets.EDIT_CCPO_USERS,
|
"name": PermissionSets.MANAGE_CCPO_USERS,
|
||||||
"display_name": "View Audit Log",
|
"display_name": "View Audit Log",
|
||||||
"description": "",
|
"description": "",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
|
@ -31,7 +31,7 @@ _ALL_PERMS = [
|
|||||||
PermissionSets.EDIT_PORTFOLIO_ADMIN,
|
PermissionSets.EDIT_PORTFOLIO_ADMIN,
|
||||||
PermissionSets.PORTFOLIO_POC,
|
PermissionSets.PORTFOLIO_POC,
|
||||||
PermissionSets.VIEW_AUDIT_LOG,
|
PermissionSets.VIEW_AUDIT_LOG,
|
||||||
PermissionSets.EDIT_CCPO_USERS,
|
PermissionSets.MANAGE_CCPO_USERS,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ def test_atst_activity_history_access(get_url_assert_status):
|
|||||||
|
|
||||||
# atst.ccpo_users
|
# atst.ccpo_users
|
||||||
def test_atst_ccpo_users_access(get_url_assert_status):
|
def test_atst_ccpo_users_access(get_url_assert_status):
|
||||||
ccpo = user_with(PermissionSets.EDIT_CCPO_USERS)
|
ccpo = user_with(PermissionSets.MANAGE_CCPO_USERS)
|
||||||
rando = user_with()
|
rando = user_with()
|
||||||
|
|
||||||
url = url_for("atst.ccpo_users")
|
url = url_for("atst.ccpo_users")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user