From da435a193a8ad59a9ff2f9dd83f19b8c389b3222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 11 Jan 2016 12:41:47 +0100 Subject: [PATCH] backoffice: don't let new forms be created when welco is deployed (#9500) --- wcs/backoffice/submission.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcs/backoffice/submission.py b/wcs/backoffice/submission.py index b4b89ad..b01209e 100644 --- a/wcs/backoffice/submission.py +++ b/wcs/backoffice/submission.py @@ -196,7 +196,10 @@ class SubmissionDirectory(Directory): cats.append(misc_cat) r = TemplateIO(html=True) - for mode in ['empty', 'create', 'existing']: + modes = ['empty', 'create', 'existing'] + if get_publisher().get_site_option('welco_url', 'variables'): + modes.remove('create') + for mode in modes: list_content = TemplateIO() for cat in cats: if not cat.formdefs: -- 2.7.0.rc3