From a50fbcc4727ceef1a4e144ab85893b6406e7f1cb Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Mon, 26 Aug 2024 08:19:10 +0300 Subject: [PATCH] UHF-10045: Install helfi_users module --- helfi_platform_config.install | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/helfi_platform_config.install b/helfi_platform_config.install index 72cc3ac42..7a7adeeb1 100644 --- a/helfi_platform_config.install +++ b/helfi_platform_config.install @@ -168,3 +168,16 @@ function helfi_platform_config_update_9311(): void { } } } + +/** + * UHF-9708: Enable helfi_users module. + */ +function helfi_platform_config_update_9312() : void { + helfi_platform_config_remove_permissions_from_all_roles([ + 'delete user accounts', + ]); + + if (!\Drupal::moduleHandler()->moduleExists('helfi_users')) { + \Drupal::service('module_installer')->install(['helfi_users']); + } +}