Skip to content

GraphQL product search does not consider Category Permissions configuration #28563

Closed
@magento-engcom-team

Description

@magento-engcom-team

GraphQL product search does not consider Category Permissions on category level and in System Configuration (Stores > Configuration > Catalog > Catalog > Category Permissions)

Preconditions
  1. Install 2.3-develop
  2. Create product Apple in category sub with price $10
  3. Go to Stores > Configuration > Catalog > Catalog > Category Permissions
  4. 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)
  5. Save Config and clear cache
  6. Make sure that category sub is not accessible from the storefront as well as simple product Apple by direct URL
Steps
  1. 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

Metadata

Metadata

Labels

Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedPAPPartners acceleration programProject: GraphQLReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions