Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detailed Product Permissions #174

Closed
andris-sevcenko opened this issue Mar 28, 2018 · 8 comments
Closed

Detailed Product Permissions #174

andris-sevcenko opened this issue Mar 28, 2018 · 8 comments
Assignees
Labels

Comments

@andris-sevcenko
Copy link
Contributor

Created by: Alex Collins (alex@ethercreative.co.uk) on 2017/04/26 06:16:54 +0000
Votes at time of UserVoice import: 3


Give product type user permissions the same granularity as a Channel in CMS

@andris-sevcenko
Copy link
Contributor Author

Created by: Maarten (wiejeben@gmail.com) on 2017/09/28 08:05:14 +0000


I would also like to be able to let users disable the creation of products, however they may edit existing ones.

@andris-sevcenko
Copy link
Contributor Author

Created by: Alan Cantes (alan@t10interactive.co.uk) on 2017/12/10 14:46:35 +0000


+1 to this. It'd be great for a client to have a user group for product editors, allowing them admin access to create products but not publish them.

@andris-sevcenko
Copy link
Contributor Author

Created by: Anonymous (seskie007@gmail.com) on 2018/02/19 06:57:08 +0000


This feature is very important, i wanted to give user groups access to create products in commerce, and when they log in , each group type should only see their products

@lukeholder lukeholder added the 💡 enhancement Ideas and suggestions label Mar 28, 2018
@lukeholder lukeholder added this to the 3.0 milestone Oct 10, 2019
@lukeholder lukeholder self-assigned this Oct 10, 2019
@lukeholder lukeholder changed the title Detailed Product Permission Detailed Product Permissions Nov 11, 2019
@lukeholder lukeholder modified the milestones: 3.0, 3.x, 3.1 Feb 6, 2020
@nfourtythree nfourtythree modified the milestones: 3.1, Backlog Apr 1, 2020
@andrelopez
Copy link

This feature will be perfect to add support to Craft Commerce for Stripe Connect with our Stripe Payments plugin. This will help to easily associate a vendor with a product on Marketplaces.

enupal/stripe#1

@lukeholder
Copy link
Member

@andrelopez Do you need an author/owner field on a product? Right now products have no author like entries.
Are you wanting only the creator of the product to edit/delete it?

@andrelopez
Copy link

andrelopez commented Jul 24, 2020

Hi @lukeholder Yes exactly, I need a way to associate a Product to a User (Vendor), we currently have Vendors elements which has associated a User. We also have Connects elements where you associate one or more products to one vendor. Basically a Vendor could have one or more products. One way is to have the author feature like entries, the other way that I was thinking is to add a filter to the ProductsQuery if a Vendor is logged in the CP where I can join with Connects to only show the products that are created by that Vendor. Please let me know if that makes sense

The beforePrepare function of the ElementQuery class rise a CancelableEvent but this only has the isValid property, it would be great If I can have the query as a property to modify the query on a similiar event.

@lukeholder
Copy link
Member

  • For each product type gets a new edit, create and delete permissions.
  • Migration for users permissions table.
  • Project config user group migration

@lukeholder lukeholder mentioned this issue Dec 2, 2020
19 tasks
@lukeholder
Copy link
Member

Will be fixed by #1905

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

6 participants