Fixed exception that was thrown while updating a field ACE
This commit is contained in:
parent
dd150fc478
commit
2e96f2c63d
@ -776,7 +776,7 @@ QUERY;
|
||||
$aceId = $this->connection->executeQuery($this->getSelectAccessControlEntryIdSql($classId, $objectIdentityId, $field, $i))->fetchColumn();
|
||||
$this->loadedAces[$aceId] = $ace;
|
||||
|
||||
$aceIdProperty = new \ReflectionProperty($ace, 'id');
|
||||
$aceIdProperty = new \ReflectionProperty('Symfony\Component\Security\Acl\Domain\Entry', 'id');
|
||||
$aceIdProperty->setAccessible(true);
|
||||
$aceIdProperty->setValue($ace, intval($aceId));
|
||||
} else {
|
||||
|
@ -301,11 +301,13 @@ class MutableAclProviderTest extends \PHPUnit_Framework_TestCase
|
||||
$acl->insertObjectAce($sid, 1);
|
||||
$acl->insertClassAce($sid, 5, 0, false);
|
||||
$acl->insertObjectAce($sid, 2, 1, true);
|
||||
$acl->insertClassFieldAce('field', $sid, 2, 0, true);
|
||||
$provider->updateAcl($acl);
|
||||
|
||||
$acl->updateObjectAce(0, 3);
|
||||
$acl->deleteObjectAce(1);
|
||||
$acl->updateObjectAuditing(0, true, false);
|
||||
$acl->updateClassFieldAce(0, 'field', 15);
|
||||
$provider->updateAcl($acl);
|
||||
|
||||
$reloadProvider = $this->getProvider();
|
||||
@ -461,4 +463,4 @@ class MutableAclProviderTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
return new MutableAclProvider($this->con, $this->getStrategy(), $this->getOptions(), $cache);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user