Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ChrisLiebenberg on
Good day,
I am using Drupal 7 and installed the Commerce Discount module but the Commerce Discount - permissions section is very limited and only provides one permission setting which allows a role to have 'Administer discounts' permissions only.
Is it possible to add more permissions to the Commerce Discount section as follows;
- Create discount of any type
- Edit own discount of any type
- Edit any discount of any type
- View own discount of any type
- View any discount of any type
Thank you
Comments
I just added the user level permissions for the discount....
I just added the user level permissions for the discount entities. I know it is an old thread but as I came across this and my requirement match the cases mentioned, I'm posting now this here. After searching for the solution for few hours, I ended up implementing the permissions by my own by referring it from
commerce_product.
Related issue which I created with patch file.