Fixed api_access decorator
This commit is contained in:
parent
90336277a7
commit
7a8e71b837
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ def api_access(func):
|
||||||
make_response("No API key provided", 401)
|
make_response("No API key provided", 401)
|
||||||
if request.values["apikey"] != settings().get(["api", "key"]):
|
if request.values["apikey"] != settings().get(["api", "key"]):
|
||||||
make_response("Invalid API key", 403)
|
make_response("Invalid API key", 403)
|
||||||
return func(args, kwargs)
|
return func(*args, **kwargs)
|
||||||
return decorated_view
|
return decorated_view
|
||||||
|
|
||||||
#~~ Printer state
|
#~~ Printer state
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue