Permissions not working
Benedict Steele - April 21, 2009 - 15:04
| Project: | Ubercart Donation Products |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Benedict Steele |
| Status: | closed |
Jump to:
Description
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.
| Attachment | Size |
|---|---|
| uc_donation.patch | 630 bytes |

#1
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
Committed.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.