Hi all,
I'm still working with the ACL feature. Now I'm implementing class scope
permissions. What I'd need to know is how to work with indexes. If I want to
update a class ACE, I would have this:
$acl = $aclProvider->findAcl( $classIdentity, array( $securityIdentity ) );
$classAces = $acl->getClassAces();
// Suppose I have an ACE with the CREATE permission with granting = true,
but I want
// to update it to inherit this permission from its parent ACL, so I would
have to delete this
// ACE
foreach ( $classAces as $index => $ace )
{
if ( $ace->getMask() === MaskBuilder::CREATE )
{
$acl->deleteClassAce( $index );
}
}
The problem here is that it throws an exception claming that the index "%d"
is undefined. How should I obtain the index of the ACE so I can delete or
update it? and BTW, if I want to change a permission CREATE from GRANTED to
NOT GRANTED or DENIED (changing "granting" from true to false), how could I
do it? should I delete the ACE and insert a new one?
Thanks in advance.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en