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 Jan 14, 2023
1 parent 2d96091 commit 29dd4b1
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 29dd4b1

Please sign in to comment.