I granted these permissions to a role:

- View any order
- Access the orders overview page

They are unable to see user/X/orders (page not found), but the Orders tab is visible on user/X.

As user 1 I can see the page.

With the 'Administer orders' permission this becomes visible.

CommentFileSizeAuthor
#7 2911501-7.patch653 bytesjsacksick
#6 view-commerce_user_orders.jpg21.28 KBnno

Comments

joachim created an issue. See original summary.

joachim’s picture

Issue summary: View changes
czigor’s picture

I needed the "View user information" too to see the user/X page, but the Orders tab was not there. Any other permissions I'm missing?

daniel korte’s picture

This can be fixed by changing the "Admin permission" setting on the View's contextual filter for "Order: Customer" from 'administer orders' to 'view any order'

martijn de wit’s picture

Category: Bug report » Support request
Status: Active » Needs review
nno’s picture

StatusFileSize
new21.28 KB

I can confirm that #4 works.

/admin/structure/views/view/commerce_user_orders
 Customer Contextual filter

jsacksick’s picture

Category: Support request » Bug report
StatusFileSize
new653 bytes

The attached patch will fix new installs, I don't really want to "mess" with existing configuration though... But yeah, it sounds like the right fix is to use the "view any order" permission.

  • jsacksick committed eb6f708 on 8.x-2.x
    Issue #2911501 by jsacksick, nno, joachim, Daniel Korte: can't see user...
jsacksick’s picture

Status: Needs review » Fixed

Committed.

  • jsacksick committed 6501ed0 on 3.0.x
    Issue #2911501 by jsacksick, nno, joachim, Daniel Korte: can't see user...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.