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

🐛 Only allow to search *owned* files in storage search endpoint #5772

Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ async def get_file(
file_id=file_id,
storage_client=storage_client,
user_id=user_id,
access_right="read",
access_right="write",
bisgaard-itis marked this conversation as resolved.
Show resolved Hide resolved
)


Expand All @@ -311,7 +311,7 @@ async def search_files_page(
user_id=user_id,
file_id=file_id,
sha256_checksum=sha256_checksum,
access_right="read",
access_right="write",
)
if page_params.offset > len(stored_files):
_logger.debug("File with sha256_checksum=%d not found.", sha256_checksum)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ async def get_job_outputs(
user_id=user_id,
file_id=file_id,
sha256_checksum=None,
access_right="read",
access_right="write",
)
if found:
assert len(found) == 1 # nosec
Expand Down
Loading