Closed (fixed)
Project:
Commerce Backoffice
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2013 at 16:20 UTC
Updated:
6 Jan 2014 at 22:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mrfelton commentedThis is not really the right approach, as it opens up the ability to edit a product based on wether the user has the permission to edit the display node. But, in our simple use case, users that have access to edit the display do also have permission to edit the linked products. So, I attach this patch for those that might have a similar setup.
Ultimately, this needs to be made more intelligent so that it is the per-product type edit permission that is checked.
Comment #2
logii commented#1 Worked for me.
Comment #3
vasikehere is a new patch that completes the work started on #1 patch.
it uses this access for "Quick Edit" link from "Operations links" Views handler.
And also adds a permission check for inside quick edit form for the product form elements.
if there's no update access for the product the form elements will be disabled.
to do:
- the "administer commerce_product entities" is the permission set for the Backoffice Products view.
imho opinion this should be changed with a more flexibile custom permission
for example: let an user with only access for updating a product display type and its product type entities
to access this page.
Comment #4
jsacksick commentedCommitted! Thanks (8aa251a), forgot to append --author :(