Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed permissions to every user #234

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions beacon/response/build_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down