Hi everybody,

during the implementation of Ubercart and Ubercart Userpoints modules for one of my customers I have noticed that anonymous user can see the Userpoints discount checkout pane, which does not make any sense, because anonymous user can't collect points, so he has no points to use.

I have made a patch which could solve this issue, here it is:

line 94 in uc_userpoints_discount.module should read:

if ($curUserId && ($discMethod != 0 && ($curUserPoints > 0 || request_uri() != '/cart/checkout'))) {

I do realize that this is a pretty lame way to publish a patch, but I am not familiar with git yet, so please accept my apology and if someone could provide a decent patch file and/or test this one it would be really great. Thus we can get this into the next release so I do not have to keep this in mind with the next modul update.

Thanks a lot.