From f83a81242a4483182a8b0fdbfd4fe77c5ee06768 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 20 Feb 2017 19:31:31 -0800 Subject: [PATCH] conf: reuse already-fetched newlogins value --- conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.py b/conf.py index 4141f82..225c442 100644 --- a/conf.py +++ b/conf.py @@ -73,7 +73,7 @@ def validateConf(conf, logger=None): assert conf['login'].get('password') != "changeme", "You have not set the login details correctly!" - if conf['login'].get('accounts'): + if newlogins: assert conf.get('permissions'), "New-style accounts enabled but no permissions block was found. You will not be able to administrate your PyLink instance!" return conf