diff --git a/application/controllers/api/frontend/v1/Studgang.php b/application/controllers/api/frontend/v1/Studgang.php index 63579e3a6..82aebb666 100644 --- a/application/controllers/api/frontend/v1/Studgang.php +++ b/application/controllers/api/frontend/v1/Studgang.php @@ -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 diff --git a/public/js/components/Cis/Cms/StudiengangInformation/StudiengangInformation.js b/public/js/components/Cis/Cms/StudiengangInformation/StudiengangInformation.js index 92e303801..30e6ecb6a 100644 --- a/public/js/components/Cis/Cms/StudiengangInformation/StudiengangInformation.js +++ b/public/js/components/Cis/Cms/StudiengangInformation/StudiengangInformation.js @@ -31,11 +31,11 @@ template:/*html*/`