Skip to content

Commit

Permalink
Orphaned ACL resource exceptions are now logged only in developer mode (
Browse files Browse the repository at this point in the history
  • Loading branch information
empiricompany authored Nov 15, 2023
1 parent bd00d61 commit b6bb243
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/core/Mage/Admin/Model/Resource/Acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ public function loadRules(Mage_Admin_Model_Acl $acl, array $rulesArr)
$acl->deny($role, $resource, $privileges, $assert);
}
} catch (Exception $e) {
Mage::logException($e);
if (Mage::getIsDeveloperMode()) {
Mage::logException($e);
}
}
}
return $this;
Expand Down

0 comments on commit b6bb243

Please sign in to comment.