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

conf: check for permissions block, per my own experience (#413)

This commit is contained in:
Ken Spencer 2017-02-20 21:08:35 -05:00 committed by James Lu
parent 0c88602d1f
commit 07ac649763

View File

@ -73,6 +73,9 @@ def validateConf(conf, logger=None):
assert conf['login'].get('password') != "changeme", "You have not set the login details correctly!"
if conf['login'].get('accounts'):
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