mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Remove reference to guard from models.
This commit is contained in:
@@ -118,11 +118,11 @@ class Account extends Model
|
||||
*
|
||||
* @return Account
|
||||
*/
|
||||
public static function routeBinder($guard, string $value): Account
|
||||
public static function routeBinder(string $value): Account
|
||||
{
|
||||
if ($guard->check()) {
|
||||
if (auth()->check()) {
|
||||
$accountId = intval($value);
|
||||
$account = $guard->user()->accounts()->find($accountId);
|
||||
$account = auth()->user()->accounts()->find($accountId);
|
||||
if (!is_null($account)) {
|
||||
return $account;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user