disable auto redirecting and then in login method probably in users
controller check if login was successful with $this->Session->read('
Auth.User.id') or something else and if it was, then get group id from
session with $this->Session->read('Auth.User.group_id') (maybe u have
role_id, idk) and from there check, if role_id == 1 redirect to admin, if is
2 redirect to superusee, itd itd...-- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/1/19 butterlamb <[email protected]> > I am currently working on an application that has several different user > roles (admin, user, superuser, etc.) and I'm trying to set it up so that > after each type of user logs in they are redirected to a dashboard with > links to other page. I have prefix routing set up, but I can't seem to get > it working. Looking at previous posts, it seems like manually redirecting is > the way to go, since beforeFilter is called before the login action is. What > would be most appropriate: a case statement in the login function, or is > there something in beforeFilter that would actually work? Thanks in advance. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
