I don't think it should show 'Order History' on the My Account page unless the user is allowed to create orders. This happened to effect me because I'm making a site in which one role can make purchases and another cannot.

CommentFileSizeAuthor
#1 orderaccess2.patch2.25 KBJody Lynn
orderaccess.patch851 bytesJody Lynn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jody Lynn’s picture

FileSize
2.25 KB

I also added the same logic to showing the 'Orders' tab.

Shawn Conn’s picture

Status: Needs review » Needs work

I think you misunderstand the permission for "create orders". The permission allows an account to use the store administration backend to manually create orders. The role is used for accounts that you want to be store administrators. The order history tab is used for customers or store administrators to review previously created orders by a customer account. If your patch is implemented, only store administrators would be able to review past orders, not the customers who made them. And if you gave customers the "create orders" permission, they would be able to review their order history but they would also be able to create orders for anyone, something you definitely don't want to do.

Jody Lynn’s picture

Status: Needs work » Closed (works as designed)

Ah, thanks very much for the clarity and saving me from figuring that out down the road. So I guess that there actually is no permission for 'make purchases' the way I wanted to use it. I think I will have to add that permission for my uses- would you be interested in a patch for that?