mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client: fetch configurations from server at runtime
Permissions, regex filters, app title, email info, and safety now fetched using server's Info API
This commit is contained in:
committed by
Marcin Kurczewski
parent
2bf361c64a
commit
3972b902d8
@ -35,11 +35,15 @@ def get_info(
|
||||
'diskUsage': _get_disk_usage(),
|
||||
'serverTime': datetime.utcnow(),
|
||||
'config': {
|
||||
'name': config.config['name'],
|
||||
'userNameRegex': config.config['user_name_regex'],
|
||||
'passwordRegex': config.config['password_regex'],
|
||||
'tagNameRegex': config.config['tag_name_regex'],
|
||||
'tagCategoryNameRegex': config.config['tag_category_name_regex'],
|
||||
'defaultUserRank': config.config['default_rank'],
|
||||
'enableSafety': config.config['enable_safety'],
|
||||
'contactEmail': config.config['contactEmail'],
|
||||
'canSendMails': bool(config.config['smtp']['host']),
|
||||
'privileges':
|
||||
util.snake_case_to_lower_camel_case_keys(
|
||||
config.config['privileges']),
|
||||
|
Reference in New Issue
Block a user