mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-20 00:20:03 +00:00
Would be nice to remove the references as well...
This commit is contained in:
@@ -89,9 +89,9 @@ class Category extends Model
|
||||
*/
|
||||
public static function routeBinder(string $value): Category
|
||||
{
|
||||
if ($guard->check()) {
|
||||
if (auth()->check()) {
|
||||
$categoryId = intval($value);
|
||||
$category = $guard->user()->categories()->find($categoryId);
|
||||
$category = auth()->user()->categories()->find($categoryId);
|
||||
if (!is_null($category)) {
|
||||
return $category;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user