Closed
Description
GraphQL product search does not consider Category Permissions on category level and in System Configuration (Stores > Configuration > Catalog > Catalog > Category Permissions)
Preconditions
- Install 2.3-develop
- Create product Apple in category sub with price $10
- Go to Stores > Configuration > Catalog > Catalog > Category Permissions
- Set Enable to Yes and leave all other options as is (it means that all categories and products will be hidden for all customers or not logged in users)
- Save Config and clear cache
- Make sure that category sub is not accessible from the storefront as well as simple product Apple by direct URL
Steps
- Send GraphQL request:
query{
products(search: "Apple"){
items {
name
price {
minimalPrice {
amount {
value
currency
}
}
}
sku
}
total_count
}
}
(-) The response contains data of product Apple
(+) Not enough permissions error message displayed