Project:Ubercart Donation Products
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Benedict Steele
Status:closed (fixed)

Issue Summary

The permissions for roles isn't working. I've had a look at the code in uc_donation.module, and the following function:

function uc_donation_access($op, $node, $account){
   uc_product_access($op, $node, $account);
}

Should be returning something in order for the permissions to be granted.

function uc_donation_access($op, $node, $account){
   return uc_product_access($op, $node, $account);
}

I've tested it, and it works for me. I've also rolled a patch for ease of use.

AttachmentSize
uc_donation.patch630 bytes

Comments

#1

Status:needs review» reviewed & tested by the community

I came across this issue as well. I implemented the same fix and it worked fine. In the process of creating an issue for it, I came across this patch. I've marked the issue as 'reviewed & tested by the community'.

#2

Thanks this solved my problem as well.

#3

Status:reviewed & tested by the community» fixed

Committed.

#4

Status:fixed» closed (fixed)

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