Skip to content
Snippets Groups Projects
Commit 3d898163 authored by Henri MEDOT's avatar Henri MEDOT Committed by Ryan Szrama
Browse files

Issue #2321205 by anrikun, rszrama, mglaman: check the proper access when...

Issue #2321205 by anrikun, rszrama, mglaman: check the proper access when generating an order URI in the Order UI module.
parent 72873ea0
No related branches found
Tags 7.x-3.2
No related merge requests found
......@@ -232,8 +232,9 @@ function commerce_order_ui_order_uri($order) {
return $uri;
}
// Only return a value if the user has permission to view the order.
if (commerce_order_access('view', $order)) {
// Only return a value if the user has permission to view the order at its
// admin URI.
if (commerce_order_admin_order_view_access($order)) {
return array(
'path' => 'admin/commerce/orders/' . $order->order_id,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment