Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Product
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
2 Jun 2016 at 18:10 UTC
Updated:
4 Oct 2017 at 09:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
citlacom commentedComment #3
citlacom commentedComment #4
bojanz commentedI'm fine with doing this filtering in loadEnabled(). Let's do it after the event is fired though, that way if the event ends up adding variations (which it shouldn't, but you never know), we are still access-covered.
We also need to expand ProductVariationStorageTest::testLoadEnabled() to test for this.
Comment #5
mglamanUpdated based on #4.
Comment #6
mglamanKeeping at needs work because of tests.
Comment #7
mglamanWe need to check in loadFromContext as well that the variation from the URL query is allowed.
Comment #8
mglamanPR started https://github.com/drupalcommerce/commerce/pull/664. Still needs tests. Blocked by #2857837: Products and variations are bypassing access control
Comment #10
bojanz commentedThanks, everyone.