mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-12-29 06:25:40 +00:00
fixed ngoduykhanh/PowerDNS-Admin issue 194
This commit is contained in:
parent
c30cffd91c
commit
f014798374
@ -64,6 +64,9 @@ def inject_default_domain_table_size_setting():
|
|||||||
@app.context_processor
|
@app.context_processor
|
||||||
def inject_auto_ptr_setting():
|
def inject_auto_ptr_setting():
|
||||||
auto_ptr_setting = Setting.query.filter(Setting.name == 'auto_ptr').first()
|
auto_ptr_setting = Setting.query.filter(Setting.name == 'auto_ptr').first()
|
||||||
|
if auto_ptr_setting is None:
|
||||||
|
return dict(auto_ptr_setting=False)
|
||||||
|
else:
|
||||||
return dict(auto_ptr_setting=strtobool(auto_ptr_setting.value))
|
return dict(auto_ptr_setting=strtobool(auto_ptr_setting.value))
|
||||||
|
|
||||||
# START USER AUTHENTICATION HANDLER
|
# START USER AUTHENTICATION HANDLER
|
||||||
|
Loading…
Reference in New Issue
Block a user