diff --git a/djangocms_form_builder/actions.py b/djangocms_form_builder/actions.py index dc01b27..c05c6c5 100644 --- a/djangocms_form_builder/actions.py +++ b/djangocms_form_builder/actions.py @@ -119,7 +119,7 @@ def execute(self, form, request): keys = {} defaults = { "form_name": get_option(form, "form_name"), - "form_user": request.user, + "form_user": request.user if get_option(form, "login_required", False) else None } defaults.update( {