Hy,
I may have found a bug in the sfDoctrineGuardPlugin.
I tried to know if my user had permissions to do something so I used
$sf_user->getGuardUser()->hasPermission('name_of_permission') in my
view but it does not return me true.
So I looked for why and I found that the hasPermission($name) function
return isset($this->permissions[$name]) but as loadGroupsAndPermissions
() function calls getAllPermissions() which merge user permissions and
groups' in the allPermissions array I changed the return of
hasPermission($name) function into isset($this->allPermissions[$name])
and now it works fine.
Is it a mistake or I do not use it in the right way ?
PS: sorry for my bad english I'm french and not used to speak or write
english ... :s
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---