You would need to request a trac account from webmaster [at] 
symfony-project.com, and submit a ticket to 
http://www.symfony-project.com/trac

- Jon

Oriol Mercadé wrote:
> Hi,
> we found two errors in sfGuardUser.php regarding permissions.
> the first error is in the function, red the error, green the solution
>
>   public function getAllPermissions()
>   {
>     if (!$this->groupPermissions)
>     {
>       $this->groupPermissions = array();
>       foreach ($this->getGroups() as $group)
>       {
>         foreach ($group->getsfGuardGroupPermissions() as $gp)
>         {
>           $permission = $gp->getsfGuardPermission();
>           $this->permissions[$permission->getName()] = $permission;
>           $this->groupPermissions[$permission->getName()] = $permission;
>           //the $this->Permissions variable was overwritten so you 
> loose all single permissions (out of the group)
>         
>         }
>       }
>       $this->groupPermissions = 
> array_merge_recursive($this->groupPermissions, $this->getPermissions());
>     }
>     return $this->groupPermissions;
>   }
>
>
> The second error is in the function
>
> public function addPermissionByName($name)
>   {
>     $permission = sfGuardGroupPeer ::retrieveByName($name );
>     $permission = sfGuardPermissionPeer::retrieveByName($name);
>     //we are adding a permission, not a group!
>     if (!$permission)
>     {
>       throw new Exception(sprintf('The permission "%s" does not 
> exist.', $name));
>     }
>
>     $up = new sfGuardUserPermission();
>     $up->setUserId($this->getId());
>     $up->setPermissionId($permission->getId());
>
>     $up->save();
>   }
>
>
> We wanted to open a ticket, but we dont know where to because it is a 
> pluggin and not symfony core.
> Is enough to post here or where do we go?
>
> thanks!
>
> -- 
>         - Oriol Mercadé Figueras
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to