noiselabs/SmartyBundle — Issue #6: Intergrate security module
Author: kimhemsoe
Created: 2012-02-24 12:29:49+00:00
State: open

Lets discuss how the plugins should look like

Suggestions to start from:

{if {is_granted role='IS_AUTHENTICATED_FULLY'}} // easy to understand but the extra {}. Params: role, roles, object, field

{if 'IS_AUTHENTICATED_FULLY'|is_granted} not great with $object and $field

$app also works ofc
{if $app->getSecurity()->isGranted('IS_AUTHENTICATED_FULLY')}

None of them is really great

What do you think ?