Skip to content

Commit aad2cd5

Browse files
author
Jens Kürten
committed
clarify why check_access is false
1 parent b78654c commit aad2cd5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/examples/basic_report.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ def simple_report(metadata: MetaData, event: CustomOperationDocumentEvent, servi
4848
with open(temp_file_path, "rb") as file_stream:
4949
if existing_file:
5050
# overwrite the existing report file
51+
# we set check_access to false to allow attaching reports to released documents
5152
service.file_upload.upload_file_content(
5253
file_object_id=existing_file.cdb_object_id, stream=file_stream, check_access=False
5354
)
5455
else:
5556
# create a new one
57+
# we set check_access to false to allow attaching reports to released documents
5658
service.file_upload.upload_new_file(
5759
parent_object_id=document.cdb_object_id, # type: ignore
5860
filename=file_name,

0 commit comments

Comments
 (0)