diff --git a/typo3/sysext/core/Documentation/Changelog/12.0/Feature-96733-NewBackendModuleRegistrationAPI.rst b/typo3/sysext/core/Documentation/Changelog/12.0/Feature-96733-NewBackendModuleRegistrationAPI.rst index 01f1bdc08383d1f4b102e0c8e89a3b37de6b034c..156fd937a348204ea91e4f26d68159ba2bcfec0d 100644 --- a/typo3/sysext/core/Documentation/Changelog/12.0/Feature-96733-NewBackendModuleRegistrationAPI.rst +++ b/typo3/sysext/core/Documentation/Changelog/12.0/Feature-96733-NewBackendModuleRegistrationAPI.rst @@ -130,7 +130,8 @@ Module configuration options | access (:php:`string`) | Can be `user` (editor permissions), `admin`, or | | | `systemMaintainer`. | +----------------------------------------------------------+------------------------------------------------------------------+ -| workspaces (:php:`string`) | Can be `*` (= always), `live` or `offline` | +| workspaces (:php:`string`) | Can be `*` (= always), `live` or `offline`. If not set, the | +| | value of the parent module - if any - is used. | +----------------------------------------------------------+------------------------------------------------------------------+ | position (:php:`array`) | The module position. Allowed values are `before => <identifier>` | | | and `after => <identifier>`. To define modules on top or at the | diff --git a/typo3/sysext/lowlevel/Classes/ConfigurationModuleProvider/BackendModuleProvider.php b/typo3/sysext/lowlevel/Classes/ConfigurationModuleProvider/BackendModuleProvider.php index 240dc0bde90394eafca90ca69541aa71ff1f883c..ab5061488bc9f448802c7e1470edabe93e980c61 100644 --- a/typo3/sysext/lowlevel/Classes/ConfigurationModuleProvider/BackendModuleProvider.php +++ b/typo3/sysext/lowlevel/Classes/ConfigurationModuleProvider/BackendModuleProvider.php @@ -38,7 +38,7 @@ class BackendModuleProvider extends AbstractProvider 'access' => $module->getAccess(), 'aliases' => $module->getAliases(), 'position' => $module->getPosition(), - 'workspaces' => $module->getWorkspaceAccess(), + 'workspaces' => $module->getWorkspaceAccess() ?: $module->getParentModule()?->getWorkspaceAccess(), 'isStandalone' => $module->isStandalone() ? 'true' : 'false', 'submodules' => $module->hasSubModules() ? implode(',', array_keys($module->getSubModules())) : '', 'path' => $module->getPath(),