backoffice: fix redirection to submission page for users with no rights (#52071)
This commit is contained in:
parent
5b54f6ed6a
commit
b5ee70fbfc
|
@ -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