3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

conf: reuse already-fetched newlogins value

This commit is contained in:
James Lu 2017-02-20 19:31:31 -08:00
parent 07ac649763
commit f83a81242a

View File

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