-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
!!! TASK: Adjust workspace module privilege names
The change includes the code migration for existing projects
- Loading branch information
Showing
2 changed files
with
71 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
Neos.Workspace.Ui/Migrations/Code/Version20240603134000.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
|
||
namespace Neos\Flow\Core\Migrations; | ||
|
||
/* | ||
* This file is part of the Neos.Workspace.Ui package. | ||
* | ||
* (c) Contributors of the Neos Project - www.neos.io | ||
* | ||
* This package is Open Source Software. For the full copyright and license | ||
* information, please view the LICENSE file which was distributed with this | ||
* source code. | ||
*/ | ||
|
||
/** | ||
* Update privilege names related to the workspace module in custom roles | ||
*/ | ||
class Version20240603134000 extends AbstractMigration | ||
{ | ||
|
||
public function getIdentifier(): string | ||
{ | ||
return 'Neos.Workspace.Ui-20240603134000'; | ||
} | ||
|
||
public function up(): void | ||
{ | ||
$this->searchAndReplace( | ||
'Neos.Neos:Backend.PublishAllToLiveWorkspace', | ||
'Neos.Workspace.Ui:Backend.PublishAllToLiveWorkspace', | ||
['yaml'] | ||
); | ||
$this->searchAndReplace( | ||
'Neos.Neos:Backend.CreateWorkspaces', | ||
'Neos.Workspace.Ui:Backend.CreateWorkspaces', | ||
['yaml'] | ||
); | ||
$this->searchAndReplace( | ||
'Neos.Neos:Backend.Module.Management.Workspaces.ManageOwnWorkspaces', | ||
'Neos.Workspace.Ui:Backend.Module.Management.Workspace.ManageOwnWorkspaces', | ||
['yaml'] | ||
); | ||
$this->searchAndReplace( | ||
'Neos.Neos:Backend.Module.Management.Workspaces.ManageInternalWorkspaces', | ||
'Neos.Workspace.Ui:Backend.Module.Management.Workspace.ManageInternalWorkspaces', | ||
['yaml'] | ||
); | ||
$this->searchAndReplace( | ||
'Neos.Neos:Backend.Module.Management.Workspaces.ManageAllPrivateWorkspaces', | ||
'Neos.Workspace.Ui:Backend.Module.Management.Workspace.ManageAllPrivateWorkspaces', | ||
['yaml'] | ||
); | ||
$this->searchAndReplace( | ||
'Neos.Neos:Backend.Module.Management.Workspaces', | ||
'Neos.Workspace.Ui:Backend.Module.Management.Workspace', | ||
['yaml'] | ||
); | ||
} | ||
} |