Skip to content

Firefly III: a personal finances manager

Remove guard from user model.

James Cole2220963899cb
diff --git a/app/User.php b/app/User.php
index a06badc51b..7b9c6c2336 100644
--- a/app/User.php
+++ b/app/User.php
@@ -68,9 +68,9 @@ class User extends Authenticatable
*
* @return User
*/
- public static function routeBinder($guard, string $value): User
+ public static function routeBinder(string $value): User
{
- if ($guard->check()) {
+ if (auth()->check()) {
$userId = intval($value);
$user = self::find($userId);
if (!is_null($user)) {