Skip to content
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

Merged
merged 4 commits into from
Nov 26, 2015

Conversation

robertlemke
Copy link
Member

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.

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())'
Copy link
Member

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…

Copy link
Member

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.
@kdambekalns
Copy link
Member

👍 from me

@robertlemke
Copy link
Member Author

👎 still discovered a bug, will provide a fix as soon as possible.

image

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.
@robertlemke
Copy link
Member Author

👍 manually tested all actions in the workspace management, looks good to me now

@robertlemke
Copy link
Member Author

👍

@kdambekalns
Copy link
Member

👍 looks good now!

robertlemke added a commit that referenced this pull request Nov 26, 2015
[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.
@robertlemke robertlemke merged commit 0f4dce7 into neos:master Nov 26, 2015
@robertlemke
Copy link
Member Author

Merged this, since it's a hot fix to solve a regression in our shippable master.

@robertlemke robertlemke deleted the workspace-management-fixes branch November 26, 2015 08:32
skurfuerst added a commit that referenced this pull request May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants