diff options
| author | 2018-11-12 18:16:55 +0000 | |
|---|---|---|
| committer | 2018-11-12 18:16:55 +0000 | |
| commit | 78b3ca3cdc6be65a01120a64b706fc3804de4d2d (patch) | |
| tree | edc36ee92ab2d94afaef3cd2fb4278804ab24463 /modules | |
| parent | 'api-minify' -> 'rest-api-minify' and make it settable from !botset (diff) | |
| signature | ||
Typo on modules/rest_api.py, '= =' -> '='
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/rest_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py index 695d1193..0ac0534b 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -23,7 +23,7 @@ class Handler(http.server.BaseHTTPRequestHandler): hook = hooks[0] authenticated = hook.get_kwarg("authenticated", True) key = params.get("key", None) - key_setting = = _bot.get_setting("api-key-%s" % key, {}) + key_setting = _bot.get_setting("api-key-%s" % key, {}) permissions = key_seting.get("permissions", []) if not authenticated or path in permissions or "*" in permissions: |
