Active
Project:
UC Discounts
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2009 at 17:34 UTC
Updated:
4 May 2009 at 17:34 UTC
When using the discount module, the order admin page will use the credentials of the current store admin, which may belong to groups that have discounts that the actual customer doesn't have. This causes the discount to be applied no matter what, which makes it impossible to edit an invoice.
Since uc_discounts_role_check doesn't pass in the $order variable, its not possible yet to get the user object into the check function. I'm working to figure out a way to do this, but it'll require some hook/api modifications.