|
|
@ -297,8 +297,6 @@ def _configuration_update_helper():
|
|
|
|
if config.config_certfile and not os.path.isfile(config.config_certfile):
|
|
|
|
if config.config_certfile and not os.path.isfile(config.config_certfile):
|
|
|
|
return _configuration_result('Certfile location is not valid, please enter correct path', gdriveError)
|
|
|
|
return _configuration_result('Certfile location is not valid, please enter correct path', gdriveError)
|
|
|
|
|
|
|
|
|
|
|
|
_config_string("config_server_url")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_config_checkbox_int("config_uploading")
|
|
|
|
_config_checkbox_int("config_uploading")
|
|
|
|
_config_checkbox_int("config_anonbrowse")
|
|
|
|
_config_checkbox_int("config_anonbrowse")
|
|
|
|
_config_checkbox_int("config_public_reg")
|
|
|
|
_config_checkbox_int("config_public_reg")
|
|
|
@ -595,7 +593,6 @@ def edit_user(user_id):
|
|
|
|
content.default_language = to_save["default_language"]
|
|
|
|
content.default_language = to_save["default_language"]
|
|
|
|
if "locale" in to_save and to_save["locale"]:
|
|
|
|
if "locale" in to_save and to_save["locale"]:
|
|
|
|
content.locale = to_save["locale"]
|
|
|
|
content.locale = to_save["locale"]
|
|
|
|
|
|
|
|
|
|
|
|
if to_save["email"] and to_save["email"] != content.email:
|
|
|
|
if to_save["email"] and to_save["email"] != content.email:
|
|
|
|
existing_email = ub.session.query(ub.User).filter(ub.User.email == to_save["email"].lower()) \
|
|
|
|
existing_email = ub.session.query(ub.User).filter(ub.User.email == to_save["email"].lower()) \
|
|
|
|
.first()
|
|
|
|
.first()
|
|
|
|