order list shows up for anonymous user

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

A user who is not logged in can see an "Orders" tab when logging in. Clicking the tab once does nothing (goes to http://livetest.ubercart.org/user//orders). Clicking again takes the user to http://livetest.ubercart.org/user/orders/orders where they can see a list of orders. They can't go any further than that (as far as I can tell) but it's still definitely a problem. I don't think a user who is not logged in should be able to see the "orders" tab to begin with and certainly not have access to the path.

Best,
Xerxes

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: order list shows up for anonymous user

Well, now... we can't have that, can we? Sticking out tongue I added a check to make sure the user was logged in for those menu items.

Interesting Drupal bug that I'll probably report... if you're not logged in and enter a URL of user/anything it will display 'anything' on the page. Kind of silly if you ask me.

http://drupal.org/user/Ubercart%20for%20President! Smiling

xerbutter's picture
Offline
Bug Finder
Joined: 09/07/2007
Juice: 146
Re: Re: order list shows up for anonymous user
Assigned to:Ryan» xerbutter

Looks good to me. Thanks for the quick fix.

Good idea to report that Drupal bug too...I didn't realize that happened!