Closed (duplicate)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Product
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2017 at 00:08 UTC
Updated:
4 Nov 2018 at 23:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
klagler commentedComment #3
drugan commentedSorry, it was wrong issue to post the comment :)
Comment #4
drugan commentedComment #5
bojanz commentedThis is a duplicate of #2499645: Start using the entity query access API on orders, products and stores, but I'll keep it open for now, for visibility.
We'll need to fix our access handling in the next 2 months.
Comment #6
tormiComment #7
mglamanMarking postponed because the main issue is in Entity API in core. However, I have written an initial proof of concept here: https://github.com/mglaman/commerce_marketplace. This limits the stores available to reference by access control. The real fix should be upstream, and really not a contributed adjustment.
Comment #8
drugan commentedThis issue is now fixed on the latest version of #2755529: Product variant bulk creation
If user has no administer commerce_store permission then only those stores displayed on the product form which are owned by this user.
The patch:
https://patch-diff.githubusercontent.com/raw/drupalcommerce/commerce/pul...
Comment #9
waspper commentedAnother workaround maybe using module "entity_browser", and changing the default form widget to use a browser and an entity reference views display, to query only stores owned by current user.
Comment #10
bojanz commentedAs #5 said, this got fixed in #2499645: Start using the entity query access API on orders, products and stores and shipped with Commerce 2.10