Skip to content

Commit

Permalink
VACMS-16418: Update roles to use Block Content core module rather tha…
Browse files Browse the repository at this point in the history
…n Block Content Permissions module.
  • Loading branch information
Becapa committed Dec 22, 2023
1 parent a563a66 commit 34b3d26
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 26 deletions.
18 changes: 12 additions & 6 deletions config/sync/user.role.content_admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ langcode: en
status: true
dependencies:
config:
- block_content.type.alert
- block_content.type.benefit_promo
- block_content.type.cta_with_link
- block_content.type.news_promo
- block_content.type.promo
- filter.format.rich_text
- filter.format.rich_text_limited
- media.type.document
Expand All @@ -16,7 +21,7 @@ dependencies:
- workflows.workflow.restricted_archive
module:
- actions_permissions
- block_content_permissions
- block_content
- block_diff_ui
- content_lock
- content_moderation
Expand Down Expand Up @@ -54,6 +59,7 @@ is_admin: null
permissions:
- 'accept translation jobs'
- 'access administration pages'
- 'access block library'
- 'access files overview'
- 'access media overview'
- 'access taxonomy overview'
Expand Down Expand Up @@ -94,9 +100,14 @@ permissions:
- 'delete image revisions'
- 'delete promo revisions'
- 'delete video revisions'
- 'edit any alert block content'
- 'edit any benefit_promo block content'
- 'edit any cta_with_link block content'
- 'edit any document media'
- 'edit any document_external media'
- 'edit any image media'
- 'edit any news_promo block content'
- 'edit any promo block content'
- 'edit any video media'
- 'execute changed_filename_unflag node'
- 'execute changed_title_unflag node'
Expand Down Expand Up @@ -131,12 +142,7 @@ permissions:
- 'unflag new'
- 'unflag new_form'
- 'unflag removed_from_source'
- 'update any alert block content'
- 'update any benefit_promo block content'
- 'update any cta_with_link block content'
- 'update any media'
- 'update any news_promo block content'
- 'update any promo block content'
- 'update content translations'
- 'update media'
- 'use editorial transition approve'
Expand Down
4 changes: 3 additions & 1 deletion config/sync/user.role.content_creator_benefits_hubs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ langcode: en
status: true
dependencies:
config:
- block_content.type.promo
- node.type.landing_page
- node.type.page
- node.type.support_service
module:
- block_content_permissions
- block_content
- file
- node
- node_link_report
Expand All @@ -20,6 +21,7 @@ label: 'Content creator - Benefits hubs'
weight: -7
is_admin: null
permissions:
- 'access block library'
- 'access files overview'
- 'create landing_page content'
- 'create page content'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- block_content.type.promo
- node.type.checklist
- node.type.faq_multiple_q_a
- node.type.media_list_images
Expand All @@ -11,7 +12,7 @@ dependencies:
- node.type.step_by_step
- node.type.support_resources_detail_page
module:
- block_content_permissions
- block_content
- file
- node
- node_link_report
Expand All @@ -24,6 +25,7 @@ label: 'Content creator - Resources and support'
weight: -6
is_admin: null
permissions:
- 'access block library'
- 'access files overview'
- 'create checklist content'
- 'create faq_multiple_q_a content'
Expand Down
9 changes: 6 additions & 3 deletions config/sync/user.role.content_editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ langcode: en
status: true
dependencies:
config:
- block_content.type.alert
- block_content.type.promo
- filter.format.rich_text
- filter.format.rich_text_limited
- media.type.document
Expand Down Expand Up @@ -66,7 +68,7 @@ dependencies:
- workflows.workflow.restricted_archive
module:
- actions_permissions
- block_content_permissions
- block_content
- block_diff_ui
- content_lock
- content_moderation
Expand All @@ -93,6 +95,7 @@ weight: -1
is_admin: null
permissions:
- 'access administration pages'
- 'access block library'
- 'access content overview'
- 'access files overview'
- 'access media overview'
Expand All @@ -107,6 +110,7 @@ permissions:
- 'create media'
- 'create promo block content'
- 'create video media'
- 'edit any alert block content'
- 'edit any banner content'
- 'edit any basic_landing_page content'
- 'edit any campaign_landing_page content'
Expand Down Expand Up @@ -138,6 +142,7 @@ permissions:
- 'edit any person_profile content'
- 'edit any press_release content'
- 'edit any press_releases_listing content'
- 'edit any promo block content'
- 'edit any promo_banner content'
- 'edit any publication_listing content'
- 'edit any q_a content'
Expand Down Expand Up @@ -175,9 +180,7 @@ permissions:
- 'revert image revisions'
- 'revert promo revisions'
- 'revert video revisions'
- 'update any alert block content'
- 'update any media'
- 'update any promo block content'
- 'update media'
- 'use editorial transition create_new_draft'
- 'use editorial transition review'
Expand Down
18 changes: 12 additions & 6 deletions config/sync/user.role.content_publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ langcode: en
status: true
dependencies:
config:
- block_content.type.alert
- block_content.type.benefit_promo
- block_content.type.cta_with_link
- block_content.type.news_promo
- block_content.type.promo
- filter.format.rich_text
- filter.format.rich_text_limited
- media.type.document
Expand Down Expand Up @@ -66,7 +71,7 @@ dependencies:
- workflows.workflow.restricted_archive
module:
- actions_permissions
- block_content_permissions
- block_content
- block_diff_ui
- content_lock
- content_moderation
Expand Down Expand Up @@ -94,6 +99,7 @@ weight: 1
is_admin: null
permissions:
- 'access administration pages'
- 'access block library'
- 'access content overview'
- 'access files overview'
- 'access media overview'
Expand All @@ -108,11 +114,14 @@ permissions:
- 'create media'
- 'create promo block content'
- 'create video media'
- 'edit any alert block content'
- 'edit any banner content'
- 'edit any basic_landing_page content'
- 'edit any benefit_promo block content'
- 'edit any campaign_landing_page content'
- 'edit any centralized_content content'
- 'edit any checklist content'
- 'edit any cta_with_link block content'
- 'edit any document media'
- 'edit any document_external media'
- 'edit any documentation_page content'
Expand All @@ -132,13 +141,15 @@ permissions:
- 'edit any media_list_images content'
- 'edit any media_list_videos content'
- 'edit any nca_facility content'
- 'edit any news_promo block content'
- 'edit any news_story content'
- 'edit any office content'
- 'edit any outreach_asset content'
- 'edit any page content'
- 'edit any person_profile content'
- 'edit any press_release content'
- 'edit any press_releases_listing content'
- 'edit any promo block content'
- 'edit any promo_banner content'
- 'edit any publication_listing content'
- 'edit any q_a content'
Expand Down Expand Up @@ -237,12 +248,7 @@ permissions:
- 'unflag changed_title'
- 'unflag deleted'
- 'unflag new_form'
- 'update any alert block content'
- 'update any benefit_promo block content'
- 'update any cta_with_link block content'
- 'update any media'
- 'update any news_promo block content'
- 'update any promo block content'
- 'update media'
- 'use editorial transition approve'
- 'use editorial transition archive'
Expand Down
9 changes: 6 additions & 3 deletions config/sync/user.role.content_reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ langcode: en
status: true
dependencies:
config:
- block_content.type.alert
- block_content.type.promo
- filter.format.rich_text
- filter.format.rich_text_limited
- media.type.document
Expand Down Expand Up @@ -66,7 +68,7 @@ dependencies:
- workflows.workflow.restricted_archive
module:
- actions_permissions
- block_content_permissions
- block_content
- block_diff_ui
- content_lock
- content_moderation
Expand All @@ -92,6 +94,7 @@ weight: 0
is_admin: null
permissions:
- 'access administration pages'
- 'access block library'
- 'access content overview'
- 'access files overview'
- 'access media overview'
Expand All @@ -104,6 +107,7 @@ permissions:
- 'create media'
- 'create promo block content'
- 'create video media'
- 'edit any alert block content'
- 'edit any banner content'
- 'edit any basic_landing_page content'
- 'edit any campaign_landing_page content'
Expand Down Expand Up @@ -135,6 +139,7 @@ permissions:
- 'edit any person_profile content'
- 'edit any press_release content'
- 'edit any press_releases_listing content'
- 'edit any promo block content'
- 'edit any promo_banner content'
- 'edit any publication_listing content'
- 'edit any q_a content'
Expand Down Expand Up @@ -164,9 +169,7 @@ permissions:
- 'execute entity:break_lock node'
- 'notify of path changes'
- 'rebuild tablefield'
- 'update any alert block content'
- 'update any media'
- 'update any promo block content'
- 'update media'
- 'use editorial transition approve'
- 'use editorial transition create_new_draft'
Expand Down
12 changes: 8 additions & 4 deletions config/sync/user.role.homepage_manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ langcode: en
status: true
dependencies:
config:
- block_content.type.benefit_promo
- block_content.type.cta_with_link
- block_content.type.news_promo
- workflows.workflow.editorial
- workflows.workflow.restricted_archive
module:
- block_content_permissions
- block_content
- block_diff_ui
- content_moderation
- entityqueue
Expand All @@ -20,19 +23,20 @@ label: 'Homepage Manager'
weight: 6
is_admin: null
permissions:
- 'access block library'
- 'create benefit_promo block content'
- 'create cta_with_link block content'
- 'create news_promo block content'
- 'delete benefit_promo revisions'
- 'delete cta_with_link revisions'
- 'delete news_promo revisions'
- 'edit any benefit_promo block content'
- 'edit any cta_with_link block content'
- 'edit any news_promo block content'
- 'manipulate entityqueues'
- 'revert benefit_promo revisions'
- 'revert cta_with_link revisions'
- 'revert news_promo revisions'
- 'update any benefit_promo block content'
- 'update any cta_with_link block content'
- 'update any news_promo block content'
- 'update home_page_hero entityqueue'
- 'update home_page_news_spotlight entityqueue'
- 'update v2_home_page_create_account entityqueue'
Expand Down
4 changes: 3 additions & 1 deletion config/sync/user.role.office_content_creator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ langcode: en
status: true
dependencies:
config:
- block_content.type.promo
- node.type.event
- node.type.outreach_asset
module:
- block_content_permissions
- block_content
- file
- node
- node_link_report
Expand All @@ -19,6 +20,7 @@ label: 'Content creator - Outreach Hub'
weight: -5
is_admin: null
permissions:
- 'access block library'
- 'access files overview'
- 'create event content'
- 'create outreach_asset content'
Expand Down
5 changes: 4 additions & 1 deletion config/sync/user.role.vamc_content_creator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- block_content.type.promo
- node.type.event
- node.type.full_width_banner_alert
- node.type.health_care_local_health_service
Expand All @@ -11,8 +12,9 @@ dependencies:
- node.type.person_profile
- node.type.press_release
- node.type.regional_health_care_service_des
- node.type.vha_facility_nonclinical_service
module:
- block_content_permissions
- block_content
- file
- node
- node_link_report
Expand All @@ -25,6 +27,7 @@ label: 'Content creator - VAMC'
weight: -4
is_admin: null
permissions:
- 'access block library'
- 'access files overview'
- 'create event content'
- 'create full_width_banner_alert content'
Expand Down

0 comments on commit 34b3d26

Please sign in to comment.