From e89677c36df4ace97198af6481572eff77540b29 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Wed, 7 Aug 2024 11:08:39 +0200 Subject: [PATCH] Comments --- application/controllers/api/frontend/v1/stv/Status.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/application/controllers/api/frontend/v1/stv/Status.php b/application/controllers/api/frontend/v1/stv/Status.php index b354ec41c..24e1dd5ae 100644 --- a/application/controllers/api/frontend/v1/stv/Status.php +++ b/application/controllers/api/frontend/v1/stv/Status.php @@ -170,6 +170,13 @@ class Status extends FHCAPI_Controller $this->terminateWithSuccess($data); } + /** + * Changes the status of a prestudent with full additional logic. + * + * @param integer $prestudent_id + * + * @return stdClass + */ public function changeStatus($prestudent_id) { $isBerechtigtNoStudstatusCheck = $this->permissionlib->isBerechtigt('student/keine_studstatuspruefung'); @@ -427,7 +434,7 @@ class Status extends FHCAPI_Controller ); return $this->getDataOrTerminateWithError($result); - }] // TODO(chris): history_student? + }] ], [ 'meldestichtag_not_exceeded' => $this->p->t('lehre', 'error_dataVorMeldestichtag'), 'rolle_doesnt_exist' => $this->p->t('lehre', 'error_rolleBereitsVorhandenMitNamen', ['name' => $studentName]),