diff --git a/Neos.Neos/Classes/Service/UserService.php b/Neos.Neos/Classes/Service/UserService.php index 5326ad93220..ff18f261fa1 100644 --- a/Neos.Neos/Classes/Service/UserService.php +++ b/Neos.Neos/Classes/Service/UserService.php @@ -59,6 +59,18 @@ public function getBackendUser() return $this->userDomainService->getCurrentUser(); } + /** + * 8.3 behaviour: Returns the name of the currently logged in user's personal workspace + * (even if that might not exist at that time). + * If no user is logged in this method returns null. + * + * @deprecated and not implemented with Neos 9.0 - can be removed any time, just for the 8.3 upgrade phase + */ + public function getPersonalWorkspaceName(): ?string + { + throw new \LogicException('`userInformation.personalWorkspaceName` was removed in Neos 9.0 see https://github.com/neos/neos-development-collection/pull/5418'); + } + /** * Returns the stored preferences of a user * diff --git a/Neos.Neos/Configuration/Policy.yaml b/Neos.Neos/Configuration/Policy.yaml index d8b19e088c9..1267021d09b 100644 --- a/Neos.Neos/Configuration/Policy.yaml +++ b/Neos.Neos/Configuration/Policy.yaml @@ -43,10 +43,6 @@ privilegeTargets: label: Access to content service APIs matcher: 'method(Neos\Neos\Controller\Backend\SchemaController->(nodeTypeSchema)Action()) || method(Neos\Neos\Controller\Backend\SettingsController->editPreviewAction())' - 'Neos.Neos:Backend.PersonalWorkspaceReadAccess.NodeConverter': - label: Access to own personal workspace - matcher: 'method(Neos\Neos\TypeConverter\NodeConverter->prepareContextProperties(workspaceName === current.userInformation.personalWorkspaceName))' - 'Neos.Neos:Backend.EditContent': label: General access to content editing matcher: 'method(Neos\Neos\Service\Controller\NodeController->(show|getPrimaryChildNode|getChildNodesForTree|filterChildNodesForTree|getChildNodes|getChildNodesFromParent|create|createAndRender|createNodeForTheTree|move|moveBefore|moveAfter|moveInto|moveAndRender|copy|copyBefore|copyAfter|copyInto|copyAndRender|update|updateAndRender|delete|searchPage|error)Action()) || method(Neos\Neos\Controller\Backend\ContentController->(uploadAsset|assetsWithMetadata|imageWithMetadata|createImageVariant|error)Action()) || method(Neos\Neos\Controller\Service\AssetProxiesController->(index|show|import|error)Action()) || method(Neos\Neos\Controller\Service\AssetsController->(index|show|error)Action()) || method(Neos\Neos\Controller\Service\NodesController->(index|show|create|error)Action())' @@ -169,10 +165,6 @@ roles: privilegeTarget: 'Neos.Neos:ContentPreview' permission: GRANT - - - privilegeTarget: 'Neos.Neos:Backend.PersonalWorkspaceReadAccess.NodeConverter' - permission: GRANT - - privilegeTarget: 'Neos.Neos:Backend.EditContent' permission: GRANT