mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
conf: check for permissions block, per my own experience (#413)
This commit is contained in:
parent
0c88602d1f
commit
07ac649763
3
conf.py
3
conf.py
@ -73,6 +73,9 @@ def validateConf(conf, logger=None):
|
|||||||
|
|
||||||
assert conf['login'].get('password') != "changeme", "You have not set the login details correctly!"
|
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
|
return conf
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user