From 36ab2709713515fec6b2f66ac4e781c37311bf49 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 11 Nov 2018 08:53:37 +0000 Subject: [PATCH] typo in modules/rest_api.py, 'permimssions' -> 'permissions' --- modules/rest_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rest_api.py b/modules/rest_api.py index 51674ab5..83fb893c 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -25,7 +25,7 @@ class Handler(http.server.BaseHTTPRequestHandler): key = params.get("key", None) 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/"): event_response = None try: