Merge branch 'ent-6378-descarga-custom-field-view' into 'develop'

Added ACL check to custom view CSV donwload

See merge request artica/pandorafms!3714
This commit is contained in:
Daniel Rodriguez 2021-03-01 10:47:50 +00:00
commit 39d0e66983
1 changed files with 10 additions and 0 deletions

View File

@ -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);