mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Would be nice to remove the references as well...
This commit is contained in:
@@ -90,9 +90,9 @@ class Budget extends Model
|
||||
*/
|
||||
public static function routeBinder(string $value): Budget
|
||||
{
|
||||
if ($guard->check()) {
|
||||
if (auth()->check()) {
|
||||
$budgetId = intval($value);
|
||||
$budget = $guard->user()->budgets()->find($budgetId);
|
||||
$budget = auth()->user()->budgets()->find($budgetId);
|
||||
if (!is_null($budget)) {
|
||||
return $budget;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user