Skip to content

Commit

Permalink
ANPL-1702 Hotfix: update-grant-access-level
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao2 committed Aug 21, 2023
1 parent 17665f7 commit c2c9726
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 c2c9726

Please sign in to comment.