Skip to content

Commit d9ca55e

Browse files
committed
ACP2E-277: treat missing rules from authorization_rule table as deny permission rules; fix static errors / warnings
1 parent d459d0c commit d9ca55e

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Authorization/Model/Acl/Loader

1 file changed

+2
-1
lines changed

app/code/Magento/Authorization/Model/Acl/Loader/Rule.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public function populateAcl(\Magento\Framework\Acl $acl)
8585
}
8686

8787
/**
88+
* Apply ACL with rules
89+
*
8890
* @param \Magento\Framework\Acl $acl
8991
* @return array[]
9092
*/
@@ -114,7 +116,6 @@ private function applyPermissionsAccordingToRules(\Magento\Framework\Acl $acl):
114116
}
115117

116118
/**
117-
*
118119
* For all rules that were not regenerated in authorization_rule table,
119120
* when adding a new module and without re-saving all roles,
120121
* consider not present rules with deny permissions

0 commit comments

Comments
 (0)