Skip to content

Commit

Permalink
Fix for TAuthorizationRuleCollection::insertAt
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed Apr 30, 2022
1 parent 39ed3e9 commit aee2a29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Version 4.2.1 - In development

BUG: Issue #809 - Interface order and minimum required PHP version (ganiuszka)
BUG: Issue #810 - Index 0 is out of range error from TAuthorizationRuleCollection::insertAt (ganiuszka)

## Version 4.2.0 - Apr 19, 2022

Expand Down
2 changes: 1 addition & 1 deletion framework/Security/TAuthorizationRuleCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function isUserAllowed($user, $verb, $ip, $extra = null)
public function insertAt($index, $item)
{
if ($item instanceof TAuthorizationRule) {
parent::insertAt($index, $item);
parent::insertAtIndexInPriority($item, $index);
} else {
throw new TInvalidDataTypeException('authorizationrulecollection_authorizationrule_required');
}
Expand Down

0 comments on commit aee2a29

Please sign in to comment.