[web2py] Re: help on howto redirect user based on their auth_membership

2011-11-11 Thread Anthony
On Friday, November 11, 2011 1:04:14 AM UTC-5, Massimo Di Pierro wrote: It was a long day. :-) OK, now I'm going to bed. :-)

[web2py] Re: help on howto redirect user based on their auth_membership

2011-11-10 Thread Anthony
auth.settings.login_next = URL('special') if auth.has_membership('supervisor') else URL('regular') Anthony On Thursday, November 10, 2011 10:40:40 PM UTC-5, tomt wrote: Hi, Is there a way to redirect a user to a specific controller based on their auth_group.role and/or auth_membership?

[web2py] Re: help on howto redirect user based on their auth_membership

2011-11-10 Thread Massimo Di Pierro
Unfortunately login_nezt is set before the login is accepted and before you know what the use permissions are. You must set a conditional rwdirect inside the login_onaccept callback. On Nov 10, 9:49 pm, Anthony abasta...@gmail.com wrote: auth.settings.login_next = URL('special') if

[web2py] Re: help on howto redirect user based on their auth_membership

2011-11-10 Thread Anthony
Of course. Don't know what I was thinking. On Thursday, November 10, 2011 11:46:01 PM UTC-5, Massimo Di Pierro wrote: Unfortunately login_nezt is set before the login is accepted and before you know what the use permissions are. You must set a conditional rwdirect inside the

[web2py] Re: help on howto redirect user based on their auth_membership

2011-11-10 Thread Massimo Di Pierro
It was a long day. :-) On Nov 10, 10:59 pm, Anthony abasta...@gmail.com wrote: Of course. Don't know what I was thinking. On Thursday, November 10, 2011 11:46:01 PM UTC-5, Massimo Di Pierro wrote: Unfortunately login_nezt is set before the login is accepted and before you know what