Commit 7f3b719d authored by Michal Čihař's avatar Michal Čihař

Warn on using test admins in production

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent a51fc71d
......@@ -80,7 +80,8 @@ def performance(request):
# Check configured admins
checks.append((
_('Site administrator'),
len(settings.ADMINS) > 0,
len(settings.ADMINS) > 0 or
'noreply@weblate.org' in [x[1] for x in settings.ADMINS],
'production-admins',
))
# Check offloading indexing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment