Loading core/modules/workspaces/src/WorkspaceManager.php +2 −2 Original line number Diff line number Diff line Loading @@ -240,8 +240,8 @@ public function switchToLive() { */ protected function doSwitchWorkspace($workspace) { // If the current user doesn't have access to view the workspace, they // shouldn't be allowed to switch to it. if ($workspace && !$workspace->access('view')) { // shouldn't be allowed to switch to it, except in CLI processes. if ($workspace && PHP_SAPI !== 'cli' && !$workspace->access('view')) { $this->logger->error('Denied access to view workspace %workspace_label for user %uid', [ '%workspace_label' => $workspace->label(), '%uid' => $this->currentUser->id(), Loading Loading
core/modules/workspaces/src/WorkspaceManager.php +2 −2 Original line number Diff line number Diff line Loading @@ -240,8 +240,8 @@ public function switchToLive() { */ protected function doSwitchWorkspace($workspace) { // If the current user doesn't have access to view the workspace, they // shouldn't be allowed to switch to it. if ($workspace && !$workspace->access('view')) { // shouldn't be allowed to switch to it, except in CLI processes. if ($workspace && PHP_SAPI !== 'cli' && !$workspace->access('view')) { $this->logger->error('Denied access to view workspace %workspace_label for user %uid', [ '%workspace_label' => $workspace->label(), '%uid' => $this->currentUser->id(), Loading