protected function isInWorkspace() { $result = false; if ($this->tsfe->beUserLogin) { $result = $GLOBALS['BE_USER']->workspace !== 0; } return $result; }