From 6da45a93497eb2b68706911c41e3a48daca477b9 Mon Sep 17 00:00:00 2001 From: l26yan <l26yan@uwaterloo.ca> Date: Fri, 21 Jan 2022 14:32:09 -0500 Subject: [PATCH] ISTWCMS-5334 Add private content viewer role for the existing site --- uw_cfg_common.install | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/uw_cfg_common.install b/uw_cfg_common.install index 76100b58..9fdc39b7 100644 --- a/uw_cfg_common.install +++ b/uw_cfg_common.install @@ -578,3 +578,13 @@ function uw_cfg_common_update_9102() { $webform->save(); } } + +/** + * Add Private content viewer role for the existing site. + */ +function uw_cfg_common_update_9103() { + Role::create([ + 'id' => 'uw_role_private_content_viewer', + 'label' => 'Private content viewer', + ])->save(); +} -- GitLab