From a31922fa637faec16cff93c35fbc82b25fc13d98 Mon Sep 17 00:00:00 2001
From: Igor Biki <ibiki@uwaterloo.ca>
Date: Thu, 8 Jul 2021 08:52:59 -0400
Subject: [PATCH] ISTWCMS-4916 Update to role permissions for site manager,
 content editor and content author.

---
 .../user.role.uw_role_content_author.yml      | 27 +++++++++++++++++++
 .../user.role.uw_role_content_editor.yml      | 27 +++++++++++++++++++
 .../user.role.uw_role_site_manager.yml        | 27 +++++++++++++++++++
 3 files changed, 81 insertions(+)

diff --git a/config/install/user.role.uw_role_content_author.yml b/config/install/user.role.uw_role_content_author.yml
index cd97d6f3..2fc18f0a 100644
--- a/config/install/user.role.uw_role_content_author.yml
+++ b/config/install/user.role.uw_role_content_author.yml
@@ -123,7 +123,34 @@ permissions:
   - 'edit terms in uw_vocab_catalog_categories'
   - 'edit terms in uw_vocab_catalogs'
   - 'edit terms in uw_vocab_news_tags'
+  - 'enter uw_ct_blog revision log entry'
+  - 'enter uw_ct_catalog_item revision log entry'
+  - 'enter uw_ct_contact revision log entry'
+  - 'enter uw_ct_event revision log entry'
+  - 'enter uw_ct_news_item revision log entry'
+  - 'enter uw_ct_profile revision log entry'
+  - 'enter uw_ct_web_page revision log entry'
   - 'make smart dates recur'
+  - 'override uw_ct_blog promote to front page option'
+  - 'override uw_ct_blog published option'
+  - 'override uw_ct_blog revision option'
+  - 'override uw_ct_blog sticky option'
+  - 'override uw_ct_catalog_item published option'
+  - 'override uw_ct_catalog_item revision option'
+  - 'override uw_ct_contact published option'
+  - 'override uw_ct_contact revision option'
+  - 'override uw_ct_event promote to front page option'
+  - 'override uw_ct_event published option'
+  - 'override uw_ct_event revision option'
+  - 'override uw_ct_event sticky option'
+  - 'override uw_ct_news_item promote to front page option'
+  - 'override uw_ct_news_item published option'
+  - 'override uw_ct_news_item revision option'
+  - 'override uw_ct_news_item sticky option'
+  - 'override uw_ct_profile published option'
+  - 'override uw_ct_profile revision option'
+  - 'override uw_ct_web_page published option'
+  - 'override uw_ct_web_page revision option'
   - 'reschedule smart date recur instances'
   - 'revert uw_ct_blog revisions'
   - 'revert uw_ct_catalog_item revisions'
diff --git a/config/install/user.role.uw_role_content_editor.yml b/config/install/user.role.uw_role_content_editor.yml
index 9bb0b554..ebca36a7 100644
--- a/config/install/user.role.uw_role_content_editor.yml
+++ b/config/install/user.role.uw_role_content_editor.yml
@@ -124,7 +124,34 @@ permissions:
   - 'edit terms in uw_vocab_catalog_categories'
   - 'edit terms in uw_vocab_catalogs'
   - 'edit terms in uw_vocab_news_tags'
+  - 'enter uw_ct_blog revision log entry'
+  - 'enter uw_ct_catalog_item revision log entry'
+  - 'enter uw_ct_contact revision log entry'
+  - 'enter uw_ct_event revision log entry'
+  - 'enter uw_ct_news_item revision log entry'
+  - 'enter uw_ct_profile revision log entry'
+  - 'enter uw_ct_web_page revision log entry'
   - 'make smart dates recur'
+  - 'override uw_ct_blog promote to front page option'
+  - 'override uw_ct_blog published option'
+  - 'override uw_ct_blog revision option'
+  - 'override uw_ct_blog sticky option'
+  - 'override uw_ct_catalog_item published option'
+  - 'override uw_ct_catalog_item revision option'
+  - 'override uw_ct_contact published option'
+  - 'override uw_ct_contact revision option'
+  - 'override uw_ct_event promote to front page option'
+  - 'override uw_ct_event published option'
+  - 'override uw_ct_event revision option'
+  - 'override uw_ct_event sticky option'
+  - 'override uw_ct_news_item promote to front page option'
+  - 'override uw_ct_news_item published option'
+  - 'override uw_ct_news_item revision option'
+  - 'override uw_ct_news_item sticky option'
+  - 'override uw_ct_profile published option'
+  - 'override uw_ct_profile revision option'
+  - 'override uw_ct_web_page published option'
+  - 'override uw_ct_web_page revision option'
   - 'reschedule smart date recur instances'
   - 'revert uw_ct_blog revisions'
   - 'revert uw_ct_catalog_item revisions'
diff --git a/config/install/user.role.uw_role_site_manager.yml b/config/install/user.role.uw_role_site_manager.yml
index 7a81e6d2..438ee142 100644
--- a/config/install/user.role.uw_role_site_manager.yml
+++ b/config/install/user.role.uw_role_site_manager.yml
@@ -153,7 +153,34 @@ permissions:
   - 'edit terms in uw_vocab_catalog_categories'
   - 'edit terms in uw_vocab_catalogs'
   - 'edit terms in uw_vocab_news_tags'
+  - 'enter uw_ct_blog revision log entry'
+  - 'enter uw_ct_catalog_item revision log entry'
+  - 'enter uw_ct_contact revision log entry'
+  - 'enter uw_ct_event revision log entry'
+  - 'enter uw_ct_news_item revision log entry'
+  - 'enter uw_ct_profile revision log entry'
+  - 'enter uw_ct_web_page revision log entry'
   - 'make smart dates recur'
+  - 'override uw_ct_blog promote to front page option'
+  - 'override uw_ct_blog published option'
+  - 'override uw_ct_blog revision option'
+  - 'override uw_ct_blog sticky option'
+  - 'override uw_ct_catalog_item published option'
+  - 'override uw_ct_catalog_item revision option'
+  - 'override uw_ct_contact published option'
+  - 'override uw_ct_contact revision option'
+  - 'override uw_ct_event promote to front page option'
+  - 'override uw_ct_event published option'
+  - 'override uw_ct_event revision option'
+  - 'override uw_ct_event sticky option'
+  - 'override uw_ct_news_item promote to front page option'
+  - 'override uw_ct_news_item published option'
+  - 'override uw_ct_news_item revision option'
+  - 'override uw_ct_news_item sticky option'
+  - 'override uw_ct_profile published option'
+  - 'override uw_ct_profile revision option'
+  - 'override uw_ct_web_page published option'
+  - 'override uw_ct_web_page revision option'
   - 'rearrange contacts'
   - 'rearrange profiles'
   - 'reschedule smart date recur instances'
-- 
GitLab