Skip to content

Commit

Permalink
Check ACL for customer link in order view (#2933)
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab authored and fballiano committed Jan 14, 2023
1 parent e95dd61 commit a504761
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public function getCustomerGroupName()

public function getCustomerViewUrl()
{
if (!Mage::getSingleton('admin/session')->isAllowed('customer/manage')) {
return false;
}
if ($this->getOrder()->getCustomerIsGuest() || !$this->getOrder()->getCustomerId()) {
return false;
}
Expand Down

0 comments on commit a504761

Please sign in to comment.