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)
|
||||
if request.values["apikey"] != settings().get(["api", "key"]):
|
||||
make_response("Invalid API key", 403)
|
||||
return func(args, kwargs)
|
||||
return func(*args, **kwargs)
|
||||
return decorated_view
|
||||
|
||||
#~~ Printer state
|
||||
|
|
|
|||
Loading…
Reference in a new issue