Typo on modules/rest_api.py, '= =' -> '='

This commit is contained in:
jesopo 2018-11-12 18:16:55 +00:00
parent eb215d61a1
commit 78b3ca3cdc

View file

@ -23,7 +23,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
hook = hooks[0]
authenticated = hook.get_kwarg("authenticated", True)
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", [])
if not authenticated or path in permissions or "*" in permissions: