use getAuthUID function instead of get_uid, use new permission basis/cis and switch to Auth_Controller where possible

This commit is contained in:
Harald Bamberger
2024-11-04 15:41:02 +01:00
parent a65e94bc8a
commit 50880c696b
21 changed files with 84 additions and 76 deletions
@@ -179,6 +179,8 @@ class Cms extends FHCAPI_Controller
$news = $this->getDataOrTerminateWithError($news);
$this->addMeta('test', $this->p->t('global', 'studiengangsleitung'));
$this->addMeta('phrases', json_decode($this->p->getJson()));
$this->terminateWithSuccess($news);
}
@@ -84,7 +84,7 @@ class LvMenu extends FHCAPI_Controller
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
// get the user
if (!$user=get_uid())
if (!$user=getAuthUID())
die($p->t('global/nichtAngemeldet'));
// check if is_lector