Skip to content

Commit

Permalink
OM PR 4199
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Sep 16, 2024
1 parent 3054159 commit f303548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Sales/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function restrictAdminBillingAgreementUsage($observer)
if (!($methodInstance instanceof Mage_Sales_Model_Payment_Method_Billing_AgreementAbstract)) {
return;
}
if (!Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/use')) {
if (!Mage::getSingleton('admin/session')->isAllowed('sales/billing_agreement/actions/use')) {
$observer->getEvent()->getResult()->isAvailable = false;
}
}
Expand Down

0 comments on commit f303548

Please sign in to comment.