Fixed customer group category

This commit is contained in:
Prashant Singh 2019-06-24 18:47:29 +05:30
parent a7d1c5e518
commit cc649c83da
2 changed files with 2 additions and 2 deletions

View File

@ -108,4 +108,4 @@ class CategoryRepository extends BaseCategoryRepository
return $parentCategories; return $parentCategories;
} }
} }

View File

@ -22,7 +22,7 @@ class Category extends BaseModel
if (auth()->guard('super-admin')->check() || ! isset($company->id)) { if (auth()->guard('super-admin')->check() || ! isset($company->id)) {
return new QueryBuilder($query); return new QueryBuilder($query);
} else { } else {
return new QueryBuilder($query->where('company_id', $company->id)); return new QueryBuilder($query->where('categories' . '.company_id', $company->id));
} }
} }
} }