-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUGFIX] Broken workspace managment backend module #211
[BUGFIX] Broken workspace managment backend module #211
Conversation
This fixes a couple of issues with the new workspace management features and improves the user interface in the workspace review screen. Editing the owner of a workspace resulted in a fatal error due to a wrong method signature. Ownership can now be transferred as intended. The rebase and redirect action (which can convenientely be triggered through an edit button in the review screen) complained about a wrong "$this" in a fatal error. Removed $this and now that works. At the bottom of the review workspace changes screen a small help message explained what would happen when a user presses one of the buttons. Removed that fineprint and now let the buttons speak for themselves.
@@ -65,15 +66,18 @@ privilegeTargets: | |||
matcher: 'method(TYPO3\Neos\Controller\Module\Management\WorkspacesController->(index|show|publishNode|discardNode|publishOrDiscardNodes|publishWorkspace|discardWorkspace|rebaseAndRedirect)Action()) || method(TYPO3\Neos\Service\Controller\AbstractServiceController->(error)Action())' | |||
|
|||
'TYPO3.Neos:Backend.Module.Management.Workspaces.ManageOwnWorkspaces': | |||
matcher: 'method(TYPO3\Neos\Controller\Module\Management\WorkspacesController->(publishWorkspace|discardWorkspace|edit|update|delete)Action(workspace.owner == current.userInformation.backendUser))' | |||
matcher: 'method(TYPO3\Neos\Controller\Module\Management\WorkspacesController->(publishWorkspace|discardWorkspace|edit|update|delete)Action())' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is not needed, rather leave it as it was…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me without that change everything works fine, so that can be undone.
This reverses a change in the policy that is not needed and was added as the result of trial and error.
👍 from me |
When editing a workspace in the workspace management module and selecting "no owner", the updateAction failed while trying to set owner to an empty string.
👍 manually tested all actions in the workspace management, looks good to me now |
👍 |
👍 looks good now! |
[BUGFIX] Broken workspace management backend module This fixes a couple of issues with the new workspace management features and improves the user interface in the workspace review screen. Editing the owner of a workspace resulted in a fatal error due to a wrong method signature. Ownership can now be transferred as intended. The rebase and redirect action (which can conveniently be triggered through an edit button in the review screen) complained about a wrong "$this" in a fatal error. Removed $this and now that works. At the bottom of the review workspace changes screen a small help message explained what would happen when a user presses one of the buttons. Removed that fine print and now let the buttons speak for themselves.
Merged this, since it's a hot fix to solve a regression in our shippable master. |
FEATURE: neos/redirecthandler adapter
This fixes a couple of issues with the new workspace management features
and improves the user interface in the workspace review screen.
Editing the owner of a workspace resulted in a fatal error due to
a wrong method signature. Ownership can now be transferred as intended.
The rebase and redirect action (which can conveniently be triggered
through an edit button in the review screen) complained about a wrong
"$this" in a fatal error. Removed $this and now that works.
At the bottom of the review workspace changes screen a small help
message explained what would happen when a user presses one of the
buttons. Removed that fine print and now let the buttons speak for
themselves.