Appreciate the module minimally maintained but it's exactly what I need and have been trying to get it functioning all day without success. The one permission I need to set is for authenticated users to delete their own orders.
However, I've tried pretty much every combination of administer / edit / view / delete own order permissions, and I still keep getting access denied every time I try and hit admin/commerce/orders/%/delete.
Enabling permission to Delete Any Order works like a charm though. But obviously has some rather undesirable side effects. Is this a bug or is there another batch of settings or permissions I need to find? Thanks.
Comments
Comment #2
geek-merlinThanks for creating this issue. TBH i'm not actively using this module anmore but will accept patches for it.
You may want to check if the order really belongs to you and debug what is happening in commerce_deletepermissions_commerce_entity_access().
Comment #3
masoom2206 commentedHello,
I have reviewed the function commerce_deletepermissions_commerce_entity_access().
Here the variable $entity_info is missing, so use the below code at line no 13
$entity_info = entity_get_info($entity_type);
Hope it will help to you.
Comment #5
geek-merlinGood find! Committed and rolled aplha5.
Please test and reopen if it does not fix this.