diff --git a/application/controllers/api/frontend/v1/stv/Config.php b/application/controllers/api/frontend/v1/stv/Config.php index 5d076ffc4..3bf48bf5b 100644 --- a/application/controllers/api/frontend/v1/stv/Config.php +++ b/application/controllers/api/frontend/v1/stv/Config.php @@ -497,11 +497,15 @@ class Config extends FHCAPI_Controller 'showEdit' => $this->permissionlib->isBerechtigt('admin') ] ]; - $result['combinePeople'] = [ - 'title' => $this->p->t('stv', 'tab_combine_people'), - 'component' => './Stv/Studentenverwaltung/Details/CombinePeople.js', - 'config' => $config['combinePeople'] - ]; + + if($this->permissionlib->isBerechtigt('basis/person')) + { + $result['combinePeople'] = [ + 'title' => $this->p->t('stv', 'tab_combine_people'), + 'component' => './Stv/Studentenverwaltung/Details/CombinePeople.js', + 'config' => $config['combinePeople'] + ]; + } $result['kontaktieren'] = [ 'title' => $this->p->t('stv', 'tab_kontaktieren'), diff --git a/public/js/components/Stv/Studentenverwaltung/List.js b/public/js/components/Stv/Studentenverwaltung/List.js index 689515bbe..11b80efd0 100644 --- a/public/js/components/Stv/Studentenverwaltung/List.js +++ b/public/js/components/Stv/Studentenverwaltung/List.js @@ -374,7 +374,8 @@ export default { encodeURIComponent(this.currentSemester) ); - const params = {}; + const params = (endpoint?.params !== undefined) ? endpoint.params : {}; + const method = (endpoint?.method !== undefined) ? endpoint.method : 'get'; if (this.filter.length) params.filter = this.filter;