Skip to content

Commit

Permalink
Include all non-Open access types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrystinne committed Feb 10, 2025
1 parent 7eea3b7 commit 08fbcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physionet-django/project/cloud/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ def upload_project_to_S3(project):

# Set the bucket policy only if the bucket was newly created
# and has controlled access
if bucket_created and project.access_policy == AccessPolicy.CREDENTIALED:
if bucket_created and project.access_policy != AccessPolicy.OPEN:
controlled_policy = create_controlled_bucket_policy(bucket_name)
s3.put_bucket_policy(Bucket=bucket_name, Policy=controlled_policy)

Expand Down

0 comments on commit 08fbcd6

Please sign in to comment.