From c2c9726ece5d3b24bceb2f49b42331aabdc63e0b Mon Sep 17 00:00:00 2001 From: ymao2 Date: Mon, 21 Aug 2023 16:32:36 +0100 Subject: [PATCH] ANPL-1702 Hotfix: update-grant-access-level --- controlpanel/frontend/views/datasource.py | 1 + 1 file changed, 1 insertion(+) diff --git a/controlpanel/frontend/views/datasource.py b/controlpanel/frontend/views/datasource.py index d3a4f8471..e6ef13dfb 100644 --- a/controlpanel/frontend/views/datasource.py +++ b/controlpanel/frontend/views/datasource.py @@ -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)