Typo in modules/rest_api.py, 'seting' -> 'setting'

This commit is contained in:
jesopo 2018-11-12 18:18:07 +00:00
parent 78b3ca3cdc
commit 6e4e358ed1

View file

@ -24,7 +24,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
authenticated = hook.get_kwarg("authenticated", True) authenticated = hook.get_kwarg("authenticated", True)
key = params.get("key", None) 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", []) permissions = key_setting.get("permissions", [])
if not authenticated or path in permissions or "*" in permissions: if not authenticated or path in permissions or "*" in permissions:
if path.startswith("/api/"): if path.startswith("/api/"):