backoffice: fix redirection to submission page for users with no rights (#52071)
This commit is contained in:
parent
ea731d19f3
commit
16d50764c8
|
@ -350,7 +350,7 @@ class FormFillPage(PublicFormFillPage):
|
|||
# if the agent is not allowed to see the submitted formdef,
|
||||
# redirect to the defined return URL or to the submission
|
||||
# homepage
|
||||
if filled.submission_context.get('return_url'):
|
||||
if filled.submission_context and filled.submission_context.get('return_url'):
|
||||
url = filled.submission_context['return_url']
|
||||
else:
|
||||
url = get_publisher().get_backoffice_url() + '/submission/'
|
||||
|
|
Loading…
Reference in New Issue