/** * @return bool */ public function isAllowed() { return $this->isEditStage() || static::getBackendUser()->workspaceCheckStageForCurrent($this->getUid()) || $this->isExecuteStage() && static::getBackendUser()->workspacePublishAccess($this->workspace->getUid()); }