Typo in modules/rest_api.py, 'seting' -> 'setting'
This commit is contained in:
parent
78b3ca3cdc
commit
6e4e358ed1
1 changed files with 1 additions and 1 deletions
|
@ -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/"):
|
||||||
|
|
Loading…
Reference in a new issue