Fixed customer group category
This commit is contained in:
parent
a7d1c5e518
commit
cc649c83da
|
|
@ -108,4 +108,4 @@ class CategoryRepository extends BaseCategoryRepository
|
|||
|
||||
return $parentCategories;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22,7 +22,7 @@ class Category extends BaseModel
|
|||
if (auth()->guard('super-admin')->check() || ! isset($company->id)) {
|
||||
return new QueryBuilder($query);
|
||||
} else {
|
||||
return new QueryBuilder($query->where('company_id', $company->id));
|
||||
return new QueryBuilder($query->where('categories' . '.company_id', $company->id));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue