diff --git a/uw_cfg_common.install b/uw_cfg_common.install index 76100b5888f30881cb2394ad1e557667cb705a2b..9fdc39b7c439e452adfe9a5c326cd6e5c0217b0a 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(); +}