From a6247fc6eb0ffb67a3aa8b6c825fc2aa48473aff Mon Sep 17 00:00:00 2001 From: Lucas Hedding <24691-lucashedding@users.noreply.drupalcode.org> Date: Thu, 24 Oct 2024 20:43:39 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- core/modules/workspaces/src/WorkspaceListBuilder.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/workspaces/src/WorkspaceListBuilder.php b/core/modules/workspaces/src/WorkspaceListBuilder.php index b1500beaee73..525e2c75391d 100644 --- a/core/modules/workspaces/src/WorkspaceListBuilder.php +++ b/core/modules/workspaces/src/WorkspaceListBuilder.php @@ -418,8 +418,7 @@ protected function offCanvasRender(array &$build) { */ protected function isPublishable(WorkspaceInterface $workspace): bool { return !$workspace->hasParent() && - $this->workspaceAssociation->getTrackedEntities($workspace->id()) !== [] && - $this->storage->getQuery()->condition('parent', $workspace->id())->accessCheck(FALSE)->count()->execute() === 0; + $this->workspaceAssociation->getTrackedEntities($workspace->id()) !== []; } } -- GitLab