Hi all,

If we want to check a class permission / object permission like CREATE, we
would do:

if ($securityContext->isGranted('CREATE', $objectIdentity) {
    // Do something
}

Now, what if I want to check for class-field or object-field? I looked at
the SecurityContext class but I didn't find a way to do this. Maybe it would
be useful something like:

if ($securityContext->isGranted('CREATE', $objectIdentity, 'field') {
    // Do something
}

But maybe there's a way to do this that I didn't see.



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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to