File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Neos.Neos/Classes/Domain/Service Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -733,21 +733,21 @@ public function currentUserCanManageWorkspace(Workspace $workspace): bool
733
733
734
734
if ($ workspace ->isInternalWorkspace ()) {
735
735
return $ this ->privilegeManager ->isPrivilegeTargetGranted (
736
- 'Neos.Neos :Backend.Module.Management.Workspaces .ManageInternalWorkspaces '
736
+ 'Neos.Workspace.Ui :Backend.Module.Management.Workspace .ManageInternalWorkspaces '
737
737
);
738
738
}
739
739
740
-
741
740
$ currentUser = $ this ->getCurrentUser ();
741
+
742
742
if ($ workspace ->isPrivateWorkspace () && $ currentUser !== null && $ workspace ->workspaceOwner === $ this ->persistenceManager ->getIdentifierByObject ($ currentUser )) {
743
743
return $ this ->privilegeManager ->isPrivilegeTargetGranted (
744
- 'Neos.Neos :Backend.Module.Management.Workspaces .ManageOwnWorkspaces '
744
+ 'Neos.Workspace.Ui :Backend.Module.Management.Workspace .ManageOwnWorkspaces '
745
745
);
746
746
}
747
747
748
748
if ($ workspace ->isPrivateWorkspace () && $ currentUser !== null && $ workspace ->workspaceOwner !== $ this ->persistenceManager ->getIdentifierByObject ($ currentUser )) {
749
749
return $ this ->privilegeManager ->isPrivilegeTargetGranted (
750
- 'Neos.Neos :Backend.Module.Management.Workspaces .ManageAllPrivateWorkspaces '
750
+ 'Neos.Workspace.Ui :Backend.Module.Management.Workspace .ManageAllPrivateWorkspaces '
751
751
);
752
752
}
753
753
@@ -771,7 +771,7 @@ public function currentUserCanTransferOwnershipOfWorkspace(Workspace $workspace)
771
771
// of their internal workspaces, even if it was technically possible, because they wouldn't be able to change
772
772
// ownership back to themselves.
773
773
return $ this ->privilegeManager ->isPrivilegeTargetGranted (
774
- 'Neos.Neos :Backend.Module.Management.Workspaces .ManageInternalWorkspaces '
774
+ 'Neos.Workspace.Ui :Backend.Module.Management.Workspace .ManageInternalWorkspaces '
775
775
);
776
776
}
777
777
You can’t perform that action at this time.
0 commit comments