Tags/topics: 
2
Answers
Vote up!
0
Vote down!

Viewing user's list of orders (user/%/orders)

I have a role that needs access to the list of orders of a user. I have all permissions under 'Order' checked already, including 'View any order of any type'. Yes, the role can view an order (admin/commerce/orders/%) but it can't view the list of orders a user has (user/%/orders).

I don't want to give the role permission to "Bypass views access control" because I don't want the role to view all of the site's views.

Can't the role just access user/%/orders? Or do I have to create a similar view?

Asked by: akosipax
on May 2, 2013

2 Answers

Vote up!
2
Vote down!

If you are using the default orders view, you should change in contextual filters the Commerce Order: Uid check, just click on "If the current user does not match the argument, validate the argument for users with specific roles" and choose your role.
Hope this helps.

Answer by: emailAlexander
Posted: Sep 15, 2013

Comments

Vote up!
1
Vote down!

View any orders of any type is completely enough to give a role access to the admin Orders view. Are you sure you haven't changed your view's access permissions?

Answer by: maciej.zgadzaj
Posted: May 3, 2013

Comments

Sure. I can access that. But what I also want to access is the user/%/orders page, the page where it lists the order of a particular user.

- akosipax on May 3, 2013