Describe the bug
A product created using the Admin Create Product API is set to Inactive by default.
However, the Shop Review API still allows customers to submit reviews for this inactive product.
Inactive products should not be eligible for customer review actions.
To Reproduce
Steps to Reproduce:
- Create a product using the Admin → Create Product API.
- Verify that the product status is Inactive in the Admin panel.
- Call the Shop → Add Review API with the inactive product ID.
- Check the API response.
Expected Result:
- Shop Review API should block reviews for inactive products.
- API should return a proper validation message such as:
"Product is inactive and cannot be reviewed."
Screenshots
If applicable, add screenshots to help explain your problem.
Actual Result:
- Review is successfully submitted for the inactive product.
- API returns a success response.
Describe the bug
A product created using the Admin Create Product API is set to Inactive by default.
However, the Shop Review API still allows customers to submit reviews for this inactive product.
Inactive products should not be eligible for customer review actions.
To Reproduce
Steps to Reproduce:
Expected Result:
"Product is inactive and cannot be reviewed."
Screenshots
If applicable, add screenshots to help explain your problem.
Actual Result: