mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Added ACL check to custom view CSV donwload
This commit is contained in:
parent
463013b06a
commit
734efbf892
@ -54,6 +54,16 @@ if (check_login()) {
|
||||
$update_filter_cf = (bool) get_parameter('update_filter_cf', 0);
|
||||
$delete_filter_cf = (bool) get_parameter('delete_filter_cf', 0);
|
||||
$change_name_filter = (bool) get_parameter('change_name_filter', 0);
|
||||
$check_csv_button = (bool) get_parameter('check_csv_button', 0);
|
||||
|
||||
if ($check_csv_button) {
|
||||
if (check_acl($config['id_user'], 0, 'PM')) {
|
||||
echo json_encode($permission);
|
||||
return;
|
||||
} else {
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
if ($get_custom_fields_data) {
|
||||
$name_custom_fields = get_parameter('name_custom_fields', 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user