From 4ad57b38335daea07cfc6c67219f9a2caf18e9ec Mon Sep 17 00:00:00 2001 From: Finn Schneider Date: Tue, 17 Mar 2026 15:07:03 +0100 Subject: profiles always editable --- app/views/evaluation/profiles/index.php | 20 +++++--------------- lib/models/QuestionnaireEvalCentralProfile.php | 9 --------- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/app/views/evaluation/profiles/index.php b/app/views/evaluation/profiles/index.php index 75bafbf..8244a41 100644 --- a/app/views/evaluation/profiles/index.php +++ b/app/views/evaluation/profiles/index.php @@ -37,22 +37,12 @@ use Studip\Button; - isEditable()) : ?> - - semester_id) ?>" - data-dialog> - semester->name) ?> - - - - + + semester_id) ?>" + data-dialog> semester->name) ?> - - + + template->title) ?> optional_templates)) as $opt_template) : ?> diff --git a/lib/models/QuestionnaireEvalCentralProfile.php b/lib/models/QuestionnaireEvalCentralProfile.php index 6c4a0bb..58615dc 100644 --- a/lib/models/QuestionnaireEvalCentralProfile.php +++ b/lib/models/QuestionnaireEvalCentralProfile.php @@ -46,13 +46,4 @@ class QuestionnaireEvalCentralProfile extends SimpleORMap $is_for ? self::RESULT_VISIBLE_FOR_OPTIONS : self::RESULT_VISIBILITY_OPTIONS ); } - - public function isEditable() - { - if(EvaluationHelper::isPermittedEvaluationAccess()) { - return !QuestionnaireEvalAssignment::countBySQL( - "`startdate` <= UNIX_TIMESTAMP() AND `semester_id` = ?", [$this->semester_id]); - } - return false; - } } -- cgit v1.0