mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 09:22:22 +00:00
use getAuthUID function instead of get_uid, use new permission basis/cis and switch to Auth_Controller where possible
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user