diff --git a/application/controllers/api/frontend/v1/stv/Config.php b/application/controllers/api/frontend/v1/stv/Config.php index d52016943..a466ad94f 100644 --- a/application/controllers/api/frontend/v1/stv/Config.php +++ b/application/controllers/api/frontend/v1/stv/Config.php @@ -106,15 +106,18 @@ class Config extends FHCAPI_Controller ]; $result['resources'] = [ 'title' => $this->p->t('stv', 'tab_resources'), - 'component' => './Stv/Studentenverwaltung/Details/Betriebsmittel.js' + 'component' => './Stv/Studentenverwaltung/Details/Betriebsmittel.js', + 'showOnlyWithUid' => true ]; $result['groups'] = [ 'title' => $this->p->t('stv', 'tab_groups'), - 'component' => './Stv/Studentenverwaltung/Details/Gruppen.js' + 'component' => './Stv/Studentenverwaltung/Details/Gruppen.js', + 'showOnlyWithUid' => true ]; $result['messages'] = [ 'title' => $this->p->t('stv', 'tab_messages'), - 'component' => './Stv/Studentenverwaltung/Details/Messages.js' + 'component' => './Stv/Studentenverwaltung/Details/Messages.js', + 'showOnlyWithUid' => true ]; $result['grades'] = [ @@ -132,7 +135,8 @@ class Config extends FHCAPI_Controller $result['exam'] = [ 'title' => $this->p->t('stv', 'tab_exam'), - 'component' => './Stv/Studentenverwaltung/Details/Pruefung.js' + 'component' => './Stv/Studentenverwaltung/Details/Pruefung.js', + 'showOnlyWithUid' => true ]; $result['exemptions'] = [ @@ -144,12 +148,14 @@ class Config extends FHCAPI_Controller $result['finalexam'] = [ 'title' => $this->p->t('stv', 'tab_finalexam'), 'component' => './Stv/Studentenverwaltung/Details/Abschlusspruefung.js', + 'showOnlyWithUid' => true, 'config' => $config['finalexam'] ]; $result['mobility'] = [ 'title' => $this->p->t('stv', 'tab_mobility'), - 'component' => './Stv/Studentenverwaltung/Details/Mobility.js' + 'component' => './Stv/Studentenverwaltung/Details/Mobility.js', + 'showOnlyWithUid' => true ]; $result['archive'] = [ @@ -162,7 +168,8 @@ class Config extends FHCAPI_Controller $result['jointstudies'] = [ 'title' => $this->p->t('stv', 'tab_jointstudies'), - 'component' => './Stv/Studentenverwaltung/Details/JointStudies.js' + 'component' => './Stv/Studentenverwaltung/Details/JointStudies.js', + 'showOnlyWithUid' => true ]; $result['coursedates'] = [ @@ -177,7 +184,8 @@ class Config extends FHCAPI_Controller $result['functions'] = [ 'title' => $this->p->t('stv', 'tab_functions'), - 'component' => './Stv/Studentenverwaltung/Details/Funktionen.js' + 'component' => './Stv/Studentenverwaltung/Details/Funktionen.js', + 'showOnlyWithUid' => true ]; Events::trigger('stv_conf_student', function & () use (&$result) { @@ -219,6 +227,7 @@ class Config extends FHCAPI_Controller $result['finalexam'] = [ 'title' => $this->p->t('stv', 'tab_finalexam'), 'component' => './Stv/Studentenverwaltung/Details/Abschlusspruefung.js', + 'showOnlyWithUid' => true, 'config' => $config['finalexam'] ]; $result['archive'] = [