Hi Hristo,

I don't want to do that as they don't share the same properties
(member have a lot of them).
Moreover it's simpler regarding the database design to separate these
enties separates.

For now I'm trying by overwritting Security Bundle and many other
feature.
It's kind of tricky for now, and I still have work to do, but I kind
of manager to start have something working.

If I manage to do exactly what I need, I will share it.

In the meantime I would like to have some feedback if others did it
before.

On Feb 6, 11:20 am, Hristo Salabashev <icho...@gmail.com> wrote:
> Hi Nyro,
>
> i can't assist you directly as i never tried to use two separate user
> providers but i suspect your problem lies there.
>
> Why exactly do you separate the user to Member and Webmaster? A lot easier
> case would be just to have a field "webmaster" in  the User entity and
> provide the roles based on that.
>
>
>
>
>
>
>
> On Sun, Feb 5, 2012 at 7:06 PM, Nyro <ced...@nyrodev.com> wrote:
> > Hi everybody,
>
> > I'm very new to symfony2. I read every document found on symfony.com
> > and a bunch of other found on the web.
>
> > I'm still struggling with a -maybe- basic problem and probably very
> > common.
>
> > Here is the explanation in details:
>
> > - I have designed my databse to have 2 tables : member and webmaster
> > - Member will have some basic features on the public website to post
> > items on the website (let say, like a forum)
> > - Member has only the role ROLE_USER
> > - Webmaster will have a access to a totally different zone, like a
> > backend
> > - Webmaster has the role ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH
> > (and a few hove them will have ROLE_SUPER_ADMIN)
>
> > For now, this is very basic and I made it work using 2 differents
> > firewalls, each one using the corresponding entity provider.
>
> > But now, I want to implement the great switch user feature. The idea
> > here is to let webmaster connect as Member to see exactly what they
> > see.
>
> > After many tries, I can't make it work.
>
> > Can somebody help me to make it works?
>
> > I'm totally open to write some listener, extends the Symfony security
> > layer or something like that. I just can't find where to start and
> > which direction to take to do it greatly.
>
> > Thanks in advance
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > You received this message because you are subscribed to the Google
> > Groups "symfony developers" group.
> > To post to this group, send email to symfony-devs@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-devs+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-devs?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to