Skip to content

Commit

Permalink
fix: api_login_check_wrapper return
Browse files Browse the repository at this point in the history
  • Loading branch information
CheeseCake87 committed Aug 14, 2024
1 parent 30d13d6 commit 182eea4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "flask-imp"
version = "5.3.2"
version = "5.3.3"
description = 'A Flask auto importer that allows your Flask apps to grow big.'
authors = [{ name = "David Carmichael", email = "[email protected]" }]
readme = "README.md"
Expand Down
5 changes: 2 additions & 3 deletions src/flask_imp/security/api_login_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ def inner(*args: t.Any, **kwargs: t.Any) -> t.Any:
if skey is not None:
if _check_against_values_allowed(skey, values_allowed):
return func(*args, **kwargs)
else:
if fail_json:
return fail_json or {"error": "You are not logged in."}

return fail_json

return inner

Expand Down

0 comments on commit 182eea4

Please sign in to comment.