Skip to content

Commit

Permalink
Revert "BUGFIX: Check if baseWorkspace is part of the permitted works…
Browse files Browse the repository at this point in the history
…pace"

This reverts commit 182f8d9.
  • Loading branch information
markusguenther committed Feb 22, 2023
1 parent 1d4aeaa commit 75e167a
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@ export default class PublishDropDown extends PureComponent {
});
const publishableNodesInDocumentCount = publishableNodesInDocument ? publishableNodesInDocument.length : 0;
const publishableNodesCount = publishableNodes ? publishableNodes.length : 0;

// check if the basework space is also part of the allowed workspaces
const allowedBaseWorkspace = (baseWorkspace in allowedWorkspaces);
const firstAllowedWorkspace = Object.values(allowedWorkspaces)[0];
if (!allowedBaseWorkspace && 'name' in firstAllowedWorkspace) {
changeBaseWorkspaceAction(firstAllowedWorkspace.name);
}
return (
<div id="neos-PublishDropDown" className={style.wrapper}>
<AbstractButton
Expand Down

0 comments on commit 75e167a

Please sign in to comment.