Skip to content
Snippets Groups Projects
Commit a6247fc6 authored by Lucas Hedding's avatar Lucas Hedding
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 1c607f5f
No related branches found
No related tags found
1 merge request!9940Resolve #3091490 "Hide unusable workspace operations"
...@@ -418,8 +418,7 @@ protected function offCanvasRender(array &$build) { ...@@ -418,8 +418,7 @@ protected function offCanvasRender(array &$build) {
*/ */
protected function isPublishable(WorkspaceInterface $workspace): bool { protected function isPublishable(WorkspaceInterface $workspace): bool {
return !$workspace->hasParent() && return !$workspace->hasParent() &&
$this->workspaceAssociation->getTrackedEntities($workspace->id()) !== [] && $this->workspaceAssociation->getTrackedEntities($workspace->id()) !== [];
$this->storage->getQuery()->condition('parent', $workspace->id())->accessCheck(FALSE)->count()->execute() === 0;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment