Needs review
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Order
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2015 at 06:08 UTC
Updated:
8 Dec 2015 at 16:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mikhailkrainiuk commentedI propose check access with "access callback" from "admin/commerce/orders" page, because we render link to this page.
Could you please see patch?
Thank you.
Comment #3
rszrama commentedHmm, I've never seen this on the normal order view page for non-authorized users. Is this because you're using Panels to display the local action link(s)?
Comment #4
mikhailkrainiuk commentedWhy non-authorized users? Users are logged in, but they haven't got access to administer pages.
My actions:
I added panel with URL "user/%user/history/%commerce_order"
I open "Arguments" section of panel and set "%commerce_order" as "Commerce Order: ID"
I open "Content" section of Panel variant and add new panel pane "Rendered Commerce order" from "Entity" group.
Comment #5
mikhailkrainiuk commentedAny news?
Comment #6
rszrama commentedOk, the issue was I didn't have enough information from your post to piece it together. I finally discovered it's the rendered entity label that Panels automatically links to its entity page. I disagree with that behavior - seems rather aggressive of Panels to randomly link things like that.
However, you're right in that the proper URI isn't chosen for customer views. I'm researching it now to see if your change is all that's required, but I wonder too if we might have a fallback to point to the normal customer view URL in the event the admin URL is inaccessible.