Skip to content

Commit 29dd4b1

Browse files
authored
Check ACL for customer link in order view (#2933)
1 parent 2d96091 commit 29dd4b1

File tree

1 file changed

+3
-0
lines changed
  • app/code/core/Mage/Adminhtml/Block/Sales/Order/View

1 file changed

+3
-0
lines changed

app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Info.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ public function getCustomerGroupName()
7474

7575
public function getCustomerViewUrl()
7676
{
77+
if (!Mage::getSingleton('admin/session')->isAllowed('customer/manage')) {
78+
return false;
79+
}
7780
if ($this->getOrder()->getCustomerIsGuest() || !$this->getOrder()->getCustomerId()) {
7881
return false;
7982
}

0 commit comments

Comments
 (0)