Don't remove core component permissions when disabled
authorlarssandergreen <lars@wildsight.ca>
Wed, 5 Jul 2023 23:52:40 +0000 (17:52 -0600)
committerlarssandergreen <lars@wildsight.ca>
Wed, 5 Jul 2023 23:52:40 +0000 (17:52 -0600)
CRM/Core/Config.php

index 771fce371ebe7b8993d997af840b4acb4e7df4f1..66e59e42648ee6b6853ec624b66b9f1f2d4b6c85 100644 (file)
@@ -290,7 +290,7 @@ class CRM_Core_Config extends CRM_Core_Config_MagicMerge {
     if ($this->userPermissionClass->isModulePermissionSupported()) {
       // Can store permissions -- so do it!
       $this->userPermissionClass->upgradePermissions(
-        CRM_Core_Permission::basicPermissions()
+        CRM_Core_Permission::basicPermissions(TRUE)
       );
     }
     elseif (get_class($this->userPermissionClass) !== 'CRM_Core_Permission_UnitTests') {