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 10:47:45 +01:00
committed by Harald Bamberger
parent fe4c14f75f
commit c677c48b00
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