show combine person tab only if permission basis/person, restore endpoint handling logic in List.js

This commit is contained in:
Harald Bamberger
2025-11-20 15:19:36 +01:00
parent d001e3c168
commit 6357aca656
2 changed files with 11 additions and 6 deletions
@@ -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'),
@@ -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;