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

rudeboypeter created an issue. See original summary.

geek-merlin’s picture

Thanks 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().

masoom2206’s picture

Hello,

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.

  • axel.rutz committed 0fa40ad on 7.x-1.x authored by masoom2206
    Issue #3044146 by masoom2206: "Delete Own" permissions not working
    
geek-merlin’s picture

Status: Active » Fixed

Good find! Committed and rolled aplha5.

Please test and reopen if it does not fix this.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.