/** * returns the fact wether the feedback editing form has to be saveable or not. * this depends on the additional content editing mode and the current question type, * as well as on fact wether the question is writable for current user or not, * or the fact if we are in self assessment mode or not * * @access private * @return boolean $isFormSaveable */ private function isFormSaveable() { $isAdditionalContentEditingModePageObject = $this->questionOBJ->isAdditionalContentEditingModePageObject(); $isSaveableInPageObjectEditingMode = $this->feedbackOBJ->isSaveableInPageObjectEditingMode(); if ($isAdditionalContentEditingModePageObject && !$isSaveableInPageObjectEditingMode) { return false; } $hasWriteAccess = $this->access->checkAccess("write", "", $_GET['ref_id']); $isSelfAssessmentEditingMode = $this->questionOBJ->getSelfAssessmentEditingMode(); return $hasWriteAccess || $isSelfAssessmentEditingMode; }