aboutsummaryrefslogtreecommitdiff
path: root/modules/rest_api.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-12 18:18:07 +0000
committerGravatar jesopo2018-11-12 18:18:07 +0000
commit6e4e358ed1d2a7466a701515a04e5c7c41d8dce3 (patch)
tree4c6accb211be9ea39b0fa16c83a8161e98810463 /modules/rest_api.py
parentTypo on modules/rest_api.py, '= =' -> '=' (diff)
signature
Typo in modules/rest_api.py, 'seting' -> 'setting'
Diffstat (limited to 'modules/rest_api.py')
-rw-r--r--modules/rest_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py
index 0ac0534b..74c80583 100644
--- a/modules/rest_api.py
+++ b/modules/rest_api.py
@@ -24,7 +24,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
authenticated = hook.get_kwarg("authenticated", True)
key = params.get("key", None)
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 path.startswith("/api/"):