ProductAccessCheck is a route access checker to ensure a node is a product, used by various attribute and stock routes. However, #2109035: Make access checkers (much) easier to find removed StaticAccessCheckInterface which ProductAccessCheck relies on. We need to figure out what we should be using instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | product-access.patch | 5.17 KB | longwave |
Comments
Comment #2
longwaveFixed ProductAccessCheck, also applied it to the product feature routes. We still need to fix the feature route permissions, I think we can do this in the same way we handled attribute route permissions.
Comment #3
longwaveLet's add some basic tests for this to ensure product tabs show up at the right times and not at the wrong times.
Comment #4
longwaveThe test implementation makes me wonder if we should review permissions around the product edit tabs. If a user already has permission to edit the product node, should we just let them edit the attributes, options, features, or stock as well?
Comment #6
longwaveComment #7
tr commentedThe attribute and options tabs still show up for all content types when managing the content type, e.g. /admin/structure/types/manage/article/display
Comment #8
longwaveOpened #2667510: Attribute tabs show up on non-product content types