From 7c46d0cb37fb3f5c4366a4f950d6cf2805d9acd1 Mon Sep 17 00:00:00 2001 From: Steve Wirt Date: Thu, 9 Jul 2020 11:31:57 -0400 Subject: [PATCH] VACMS-2210 Adjust perms for va_form content type. (#2211) --- config/sync/user.role.authenticated.yml | 1 + config/sync/user.role.content_editor.yml | 4 ++++ config/sync/user.role.content_publisher.yml | 6 ++++++ config/sync/user.role.content_reviewer.yml | 3 +++ tests/phpunit/SecurityRolesPermissionsTest.php | 14 ++++++++++++++ 5 files changed, 28 insertions(+) diff --git a/config/sync/user.role.authenticated.yml b/config/sync/user.role.authenticated.yml index 3892f5fc35..b81031654e 100644 --- a/config/sync/user.role.authenticated.yml +++ b/config/sync/user.role.authenticated.yml @@ -32,6 +32,7 @@ permissions: - 'enter publication_listing revision log entry' - 'enter regional_health_care_service_des revision log entry' - 'enter support_service revision log entry' + - 'enter va_form revision log entry' - 'enter vamc_operating_status_and_alerts revision log entry' - 'execute graphql requests' - 'execute persisted graphql requests' diff --git a/config/sync/user.role.content_editor.yml b/config/sync/user.role.content_editor.yml index e4efcc061b..ea1fc7d372 100644 --- a/config/sync/user.role.content_editor.yml +++ b/config/sync/user.role.content_editor.yml @@ -31,6 +31,7 @@ permissions: - 'create image media' - 'create media' - 'create promo block content' + - 'create va_form content' - 'create video media' - 'delete media' - 'edit any document media' @@ -58,6 +59,7 @@ permissions: - 'edit any regional_health_care_service_des content' - 'edit any story_listing content' - 'edit any support_service content' + - 'edit any va_form content' - 'edit any vamc_operating_status_and_alerts content' - 'edit any video media' - 'edit own documentation_page content' @@ -82,6 +84,7 @@ permissions: - 'edit own regional_health_care_service_des content' - 'edit own story_listing content' - 'edit own support_service content' + - 'edit own va_form content' - 'edit own vamc_operating_status_and_alerts content' - 'execute entity:break_lock node' - 'notify of path changes' @@ -124,5 +127,6 @@ permissions: - 'view support_service revisions' - 'view the administration theme' - 'view unpublished paragraphs' + - 'view va_form revisions' - 'view vamc_operating_status_and_alerts revisions' - 'view workbench access information' diff --git a/config/sync/user.role.content_publisher.yml b/config/sync/user.role.content_publisher.yml index 0ba56ea50d..226339e3bc 100644 --- a/config/sync/user.role.content_publisher.yml +++ b/config/sync/user.role.content_publisher.yml @@ -52,6 +52,7 @@ permissions: - 'delete any publication_listing content' - 'delete any regional_health_care_service_des content' - 'delete any support_service content' + - 'delete any va_form content' - 'delete any video media' - 'delete media' - 'delete own document media' @@ -73,6 +74,7 @@ permissions: - 'delete own publication_listing content' - 'delete own regional_health_care_service_des content' - 'delete own support_service content' + - 'delete own va_form content' - 'delete own video media' - 'delete terms in health_care_service_taxonomy' - 'edit any document media' @@ -99,6 +101,7 @@ permissions: - 'edit any regional_health_care_service_des content' - 'edit any story_listing content' - 'edit any support_service content' + - 'edit any va_form content' - 'edit any vamc_operating_status_and_alerts content' - 'edit any video media' - 'edit own document media' @@ -126,6 +129,7 @@ permissions: - 'edit own regional_health_care_service_des content' - 'edit own story_listing content' - 'edit own support_service content' + - 'edit own va_form content' - 'edit own vamc_operating_status_and_alerts content' - 'edit own video media' - 'edit terms in health_care_service_taxonomy' @@ -152,6 +156,7 @@ permissions: - 'revert publication_listing revisions' - 'revert regional_health_care_service_des revisions' - 'revert support_service revisions' + - 'revert va_form revisions' - 'revert vamc_operating_status_and_alerts revisions' - 'schedule editorial transition archive' - 'schedule editorial transition archived_published' @@ -198,5 +203,6 @@ permissions: - 'view support_service revisions' - 'view the administration theme' - 'view unpublished paragraphs' + - 'view va_form revisions' - 'view vamc_operating_status_and_alerts revisions' - 'view workbench access information' diff --git a/config/sync/user.role.content_reviewer.yml b/config/sync/user.role.content_reviewer.yml index bdcf54d4ae..0a64cca96d 100644 --- a/config/sync/user.role.content_reviewer.yml +++ b/config/sync/user.role.content_reviewer.yml @@ -54,6 +54,7 @@ permissions: - 'edit any publication_listing content' - 'edit any regional_health_care_service_des content' - 'edit any support_service content' + - 'edit any va_form content' - 'edit any vamc_operating_status_and_alerts content' - 'edit any video media' - 'edit own documentation_page content' @@ -74,6 +75,7 @@ permissions: - 'edit own publication_listing content' - 'edit own regional_health_care_service_des content' - 'edit own support_service content' + - 'edit own va_form content' - 'edit own vamc_operating_status_and_alerts content' - 'execute entity:break_lock node' - 'notify of path changes' @@ -117,5 +119,6 @@ permissions: - 'view support_service revisions' - 'view the administration theme' - 'view unpublished paragraphs' + - 'view va_form revisions' - 'view vamc_operating_status_and_alerts revisions' - 'view workbench access information' diff --git a/tests/phpunit/SecurityRolesPermissionsTest.php b/tests/phpunit/SecurityRolesPermissionsTest.php index 6bf466b8c1..ffc4f918b6 100644 --- a/tests/phpunit/SecurityRolesPermissionsTest.php +++ b/tests/phpunit/SecurityRolesPermissionsTest.php @@ -78,6 +78,7 @@ public function expectedPerms() { 'enter publication_listing revision log entry', 'enter regional_health_care_service_des revision log entry', 'enter support_service revision log entry', + 'enter va_form revision log entry', 'enter vamc_operating_status_and_alerts revision log entry', 'execute graphql requests', 'execute persisted graphql requests', @@ -209,6 +210,7 @@ public function expectedPerms() { 'create image media', 'create media', 'create promo block content', + 'create va_form content', 'create video media', 'delete media', 'edit any document media', @@ -236,6 +238,7 @@ public function expectedPerms() { 'edit any regional_health_care_service_des content', 'edit any story_listing content', 'edit any support_service content', + 'edit any va_form content', 'edit any vamc_operating_status_and_alerts content', 'edit any video media', 'edit own documentation_page content', @@ -260,6 +263,7 @@ public function expectedPerms() { 'edit own regional_health_care_service_des content', 'edit own story_listing content', 'edit own support_service content', + 'edit own va_form content', 'edit own vamc_operating_status_and_alerts content', 'execute entity:break_lock node', 'notify of path changes', @@ -302,6 +306,7 @@ public function expectedPerms() { 'view support_service revisions', 'view the administration theme', 'view unpublished paragraphs', + 'view va_form revisions', 'view vamc_operating_status_and_alerts revisions', 'view workbench access information', ], @@ -351,6 +356,7 @@ public function expectedPerms() { 'edit any publication_listing content', 'edit any regional_health_care_service_des content', 'edit any support_service content', + 'edit any va_form content', 'edit any vamc_operating_status_and_alerts content', 'edit any video media', 'edit own documentation_page content', @@ -371,6 +377,7 @@ public function expectedPerms() { 'edit own publication_listing content', 'edit own regional_health_care_service_des content', 'edit own support_service content', + 'edit own va_form content', 'edit own vamc_operating_status_and_alerts content', 'execute entity:break_lock node', 'notify of path changes', @@ -414,6 +421,7 @@ public function expectedPerms() { 'view support_service revisions', 'view the administration theme', 'view unpublished paragraphs', + 'view va_form revisions', 'view vamc_operating_status_and_alerts revisions', 'view workbench access information', ], @@ -461,6 +469,7 @@ public function expectedPerms() { 'delete any publication_listing content', 'delete any regional_health_care_service_des content', 'delete any support_service content', + 'delete any va_form content', 'delete any video media', 'delete media', 'delete own document media', @@ -482,6 +491,7 @@ public function expectedPerms() { 'delete own publication_listing content', 'delete own regional_health_care_service_des content', 'delete own support_service content', + 'delete own va_form content', 'delete own video media', 'delete terms in health_care_service_taxonomy', 'edit any document media', @@ -508,6 +518,7 @@ public function expectedPerms() { 'edit any regional_health_care_service_des content', 'edit any story_listing content', 'edit any support_service content', + 'edit any va_form content', 'edit any vamc_operating_status_and_alerts content', 'edit any video media', 'edit own document media', @@ -535,6 +546,7 @@ public function expectedPerms() { 'edit own regional_health_care_service_des content', 'edit own story_listing content', 'edit own support_service content', + 'edit own va_form content', 'edit own vamc_operating_status_and_alerts content', 'edit own video media', 'edit terms in health_care_service_taxonomy', @@ -561,6 +573,7 @@ public function expectedPerms() { 'revert publication_listing revisions', 'revert regional_health_care_service_des revisions', 'revert support_service revisions', + 'revert va_form revisions', 'revert vamc_operating_status_and_alerts revisions', 'schedule editorial transition archive', 'schedule editorial transition archived_published', @@ -607,6 +620,7 @@ public function expectedPerms() { 'view support_service revisions', 'view the administration theme', 'view unpublished paragraphs', + 'view va_form revisions', 'view vamc_operating_status_and_alerts revisions', 'view workbench access information', ],