typo in modules/rest_api.py, 'permimssions' -> 'permissions'
This commit is contained in:
parent
8024bc9c80
commit
36ab270971
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue