Hi, Depending on the role of the logged in user, the next URL should be different.
This is what I did :
if auth.has_membership(user_id='6',role='Straathoekwerkers'):
auth.settings.login_next=URL('mycla')
This works as long as I pass a user id, like I did in this piece of code.
I am looking for a solution whereby anyone, with role 'Straathoekwerkers',
will be redirected to this URL.
How can I do this ? If I don't pass a user id, it doesn't work.
Thanks
Mathias
--

