From c328cc51e3bf5c31fdc75d7b1adc37ceb6fda2e6 Mon Sep 17 00:00:00 2001
From: Igor Biki <ibiki@uwaterloo.ca>
Date: Wed, 4 Dec 2024 08:51:39 -0500
Subject: [PATCH] ISTWCMS-7020: Restricting blocks to be used on dashboards.

---
 .../dashboards.dashboard.my_dashboard.yml     | 25 ++++++++-----------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/config/install/dashboards.dashboard.my_dashboard.yml b/config/install/dashboards.dashboard.my_dashboard.yml
index 9248448..c957170 100644
--- a/config/install/dashboards.dashboard.my_dashboard.yml
+++ b/config/install/dashboards.dashboard.my_dashboard.yml
@@ -6,6 +6,7 @@ dependencies:
 third_party_settings:
   layout_builder_restrictions:
     allowed_block_categories:
+      - Editoria11y
       - 'Lists (Views)'
       - Menus
       - System
@@ -19,22 +20,20 @@ third_party_settings:
         - uw_3_column
         - uw_inverted_l_right
         - uw_inverted_l_left
-      restricted_categories: {  }
-      blacklisted_blocks:
-        'Lists (Views)':
-          - 'views_block:bibcite_reference-bibcite_reference_block'
-        Menus: {  }
-        System: {  }
-        'UW Custom Blocks':
-          - uw_cbl_blog_author
-          - uw_cbl_special_alert
-          - uw_cbl_content_moderation
-        'UW Dashboard Items': {  }
-        Webform: {  }
+      restricted_categories:
+        - Editoria11y
+        - 'Lists (Views)'
+        - Menus
+        - System
+        - 'UW Custom Blocks'
+        - Webform
+      blacklisted_blocks: {  }
       whitelisted_blocks: {  }
 id: my_dashboard
 admin_label: 'My Dashboard'
 category: ''
+frontend: false
+weight: 0
 sections:
   -
     layout_id: uw_3_column
@@ -180,5 +179,3 @@ sections:
         additional:
           layout_builder_id: content-list
     third_party_settings: {  }
-frontend: false
-weight: 0
-- 
GitLab