fas statusbearbeitung sperre check: isStatusBeforeStudent - simplified expression

This commit is contained in:
Alexei Karpenko
2026-05-29 18:05:09 +02:00
parent 805fd34d17
commit 52b7226c3b
+1 -3
View File
@@ -86,9 +86,7 @@ if($prestudent_id!='')
$disabled = $bismeldestichtag->checkMeldestichtagErreicht($datum) && !$rechte->isBerechtigt('student/keine_studstatuspruefung', null, 'suid')
? ' disabled="true"'
: '';
$isStatusBeforeStudent = in_array($status_kurzbz, array('Student','Diplomand','Absovlent','Incoming','Abbrecher','Unterbrecher'))
? false
: true;
$isStatusBeforeStudent = !in_array($status_kurzbz, array('Student','Diplomand','Absovlent','Incoming','Abbrecher','Unterbrecher'));
$disabledStudent = $isStatusBeforeStudent
? ' '
: ' disabled="true"';