Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #12824
James Cole644e93ccc58a
diff --git a/app/Http/Middleware/CatchBlockedUsers.php b/app/Http/Middleware/CatchBlockedUsers.phpindex 8280c05222..cb57148408 100644--- a/app/Http/Middleware/CatchBlockedUsers.php+++ b/app/Http/Middleware/CatchBlockedUsers.php@@ -24,7 +24,7 @@ class CatchBlockedUsersif (auth()->check()) {$user = auth()->user();if (null !== $user) {- if (false !== $user->blocked || '' !== (string) $user->blocked_code) {+ if (true === $user->blocked) {throw new AuthenticationException(sprintf('User is not allowed to use the API ("%s")', $user->blocked_code));}}diff --git a/changelog.md b/changelog.mdindex 495f050ff3..eb7dadbfd3 100644--- a/changelog.md+++ b/changelog.md@@ -30,6 +30,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).- #12823- #12828- #12827+- #12824### Security