I agree with juro.  You don't need really create any filter for what
you are looking to do.  If you want a person to only be able to see
their own companies you can just add in the criteria for all 'selects'
from that model that the company_id is in the persons access.  This
will make it so anytime you do a query it automatically makes sure
that the company being selected is inside the persons companies they
are allowed to see.
Daum

On Nov 25, 2:16 pm, juro <[EMAIL PROTECTED]> wrote:
> Hi Daniel,
> shouldn't be a problem. Have a look at the sfGuardPlugin which adds
> user management to Symfony. Users can be part of groups (companies in
> your case) and you can pull db entries according to the group/company.
>
> juro
>
> On Nov 25, 4:55 pm, Daniel Kurman <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi all. I need to do a multi company app. Is there a way to learn how
> > to do this?. Ideas. The idea is to have a login page. Through this,
> > the user could see only the records corresponding to his company only.
> > I thought to use some kind of filter, but I don´t know if this could
> > be done.
>
> > Thanks in advance- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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