Why not create a group for each class -- tutor and student -- and assign 
group membership for each student?  A student can participate in more than 
one group.  It's easy to test for group membership -- just use the 
decorator:

@auth.requires_membership('tutor')

-- Joe B.


On Tuesday, November 20, 2012 5:57:57 PM UTC-8, Daniele wrote:
>
> I am trying to build a model where each logged user can decide if he/she 
> is a tutor or student or both.
> So the tutor table has to 'reference auth.settings.table_user_name' and 
> student also has to have the same reference.
>
> The tutor/student/logged user have to be related by their id key I imagine.
>
> Is this the proper way to go about this? Moreover, how can I check that 
> the relationship is working?
>

-- 



Reply via email to