Symfony security: useful methods for the view

31/01/2008

Check if user is logged in:

$sf_user->isAuthenticated()

Check if user belongs to a specific group:

$sf_user->hasCredential('admin')
No Comments