mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-16 11:39:31 +00:00
show combine person tab only if permission basis/person, restore endpoint handling logic in List.js
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user