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
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.

AttachmentSize
uc_donation.patch630 bytes

#1

justindodge - May 22, 2009 - 01:00
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

jackinloadup - June 1, 2009 - 16:57

Thanks this solved my problem as well.

#3

greenSkin - June 8, 2009 - 15:19
Status:reviewed & tested by the community» fixed

Committed.

#4

System Message - June 22, 2009 - 15:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.