You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is our scenario that break our acl workflow when we want to add another mask entry for an user.
We have a flow that let our admin user to switch from their admin account to another access level temporarily.
Then by action we want to add the temporary access level on the acl entries through insertObjectAce and then save the action updateAcl, we got on some case an undefined index 0 or any index when it does not exists on the old value of the objectAce.
the error is in the updateOldAceProperty:963 (Symfony\Component\Security\Acl\Dbal\MutableAclProvider.php)
for ($i = 0, $c = \count($old); $i < $c; ++$i) {
$ace = $old[$i]; <=== here comes the error when the content is not defined
if (!isset($currentIds[$ace->getId()])) {
$this->connection->executeStatement($this->getDeleteAccessControlEntrySql($ace->getId()));
unset($this->loadedAces[$ace->getId()]);
}
}
Hello,
Here is our scenario that break our acl workflow when we want to add another mask entry for an user.
We have a flow that let our admin user to switch from their admin account to another access level temporarily.
Then by action we want to add the temporary access level on the acl entries through insertObjectAce and then save the action updateAcl, we got on some case an undefined index 0 or any index when it does not exists on the old value of the objectAce.
here is the part of the code
$objectsAce = $acl->getObjectAces();
$isUpdated = false;
The text was updated successfully, but these errors were encountered: