typo in modules/rest_api.py, 'permimssions' -> 'permissions'

This commit is contained in:
jesopo 2018-11-11 08:53:37 +00:00
parent 8024bc9c80
commit 36ab270971

View file

@ -25,7 +25,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
key = params.get("key", None) key = params.get("key", None)
permissions = _bot.get_setting("api-key-%s" % key, []) permissions = _bot.get_setting("api-key-%s" % key, [])
if not authenticated or path in permimssions or "*" in permissions: if not authenticated or path in permissions or "*" in permissions:
if path.startswith("/api/"): if path.startswith("/api/"):
event_response = None event_response = None
try: try: