Skip to content

Commit

Permalink
Fixing access point policy updates and user assignments. Updating onl…
Browse files Browse the repository at this point in the history
…y the specific access point policy being changed, and preventing the reassignment of existing users to different access points when a new user is added. Replacing aws_id with aws_userid in access point policies.
  • Loading branch information
Chrystinne committed Jan 14, 2025
1 parent b8eaa82 commit 8f06abe
Show file tree
Hide file tree
Showing 4 changed files with 314 additions and 125 deletions.
3 changes: 1 addition & 2 deletions physionet-django/console/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
upload_project_to_S3,
get_bucket_name,
check_s3_bucket_exists,
update_data_access_point_policy,
has_s3_credentials,
)

Expand Down Expand Up @@ -925,7 +924,7 @@ def update_aws_access_point_policy(pid):
project = PublishedProject.objects.get(id=pid)
exists = check_s3_bucket_exists(project)
if exists:
update_data_access_point_policy(project)
update_aws_access_point_policy(project)
updated_policy = True
else:
updated_policy = False
Expand Down
Loading

0 comments on commit 8f06abe

Please sign in to comment.