I think you need to use $sf_user->getAllPermssions() to include a users group permissions.
I usually overload the sfGuardUser::getPermissions function to use getAllPermissions, it just makes more sense to me that way. On 19 Oct 2008, at 13:04, Alex 'noetix' Joyce wrote: > > > After looking at the code, when you execute hasPermission for the > first time it loads up user permissions only. > When you execute getAllPermissionNames, it also includes the group > permissions. > > Is this as expected? > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
