Skip to content

Commit

Permalink
Merge pull request #1198 from ministryofjustice/hotfix/update-s3-acce…
Browse files Browse the repository at this point in the history
…ss-level

ANPL-1702 Hotfix: update-grant-access-level
  • Loading branch information
ymao2 authored Aug 21, 2023
2 parents 17665f7 + c2c9726 commit cb36206
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controlpanel/frontend/views/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def get_success_url(self):
def form_valid(self, form):
self.object.access_level = form.cleaned_data["access_level"]
self.object.is_admin = form.cleaned_data.get("is_admin")
self.object.current_user = self.request.user
self.object.paths = form.cleaned_data["paths"]
self.object.save()
return FormMixin.form_valid(self, form)
Expand Down

0 comments on commit cb36206

Please sign in to comment.