From 415e7595867269742e0c0779cdeffd53d45332da Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Wed, 5 Mar 2025 08:54:26 +0100 Subject: [PATCH] fix(StudiengangsInformationen API data): fixes little error when checking if the uid is a mitarbeiter or not --- application/controllers/api/frontend/v1/Studgang.php | 3 ++- .../Cis/Cms/StudiengangInformation/StudiengangInformation.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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*/`

{{$p.t('lehre','studiengang')}}:

- {{studiengang.bezeichnung}} + {{studiengang?.bezeichnung}}

{{$p.t('lehre','studiensemester')}}: