From f55002b01b9a22503666618383a60124359db6cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20L=C3=B3pez-Doriga?= Date: Tue, 17 Oct 2023 17:23:28 +0200 Subject: [PATCH] fixed permissions to every user --- beacon/response/build_response.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/beacon/response/build_response.py b/beacon/response/build_response.py index d4be3d47..c5769871 100644 --- a/beacon/response/build_response.py +++ b/beacon/response/build_response.py @@ -110,9 +110,10 @@ def build_beacon_resultset_response_by_dataset(data, dataset_ids_list = [] for dataset_dict in list_of_dataset_dicts: - dataset_id = dataset_dict['dataset'] - response_dict[dataset_id] = [] - dataset_ids_list.append(dataset_id) + if 'Unauthorized dataset' not in dataset_dict['ids']: + dataset_id = dataset_dict['dataset'] + response_dict[dataset_id] = [] + dataset_ids_list.append(dataset_id) for doc in data: for dataset_dict in list_of_dataset_dicts: @@ -155,8 +156,7 @@ def build_beacon_resultset_response_by_dataset(data, dataset_id = dataset_dict['dataset'] response_dict[dataset_id].append(doc) except Exception as e: - dataset_id = dataset_dict['dataset'] - response_dict[dataset_id].append(doc) + pass length_to_rest=0 for dataset_id in dataset_ids_list: finish_record = finish_record - length_to_rest