fix(StudiengangsInformationen API data): fixes little error when checking if the uid is a mitarbeiter or not

This commit is contained in:
SimonGschnell
2025-03-05 08:54:26 +01:00
parent b1b0d5edd0
commit 415e759586
2 changed files with 4 additions and 3 deletions
@@ -45,8 +45,9 @@ class Studgang extends FHCAPI_Controller
public function getStudiengangInfo(){
$isMitarbeiter = $this->MitarbeiterModel->isMitarbeiter(getAuthUID());
$isMitarbeiter = $this->getDataOrTerminateWithError($isMitarbeiter);
if($isMitarbeiter) {
$this->terminateWithSuccess();
$this->terminateWithSuccess(null);
}
// fetches the Studiengang Information which is used next to the news