backoffice: fix redirection to submission page for users with no rights (#52071)

This commit is contained in:
Frédéric Péters 2021-03-16 07:30:50 +01:00
parent 5b54f6ed6a
commit b5ee70fbfc
1 changed files with 1 additions and 1 deletions

View File

@ -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/'