mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 18:01:26 -06:00
Remove guard from user model.
This commit is contained in:
parent
e69e6c1ce8
commit
2220963899
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user