Hello, i Found a lot of good authorization plugins which can protect
controller actions. I need those of course, but i also need something
else:
I have a large database with patients and based on the authenticated
user and the groups he or she belongs to, the user only may see his own
patients.
In my php app, i did this with a query like
select patient.name from patients,groups,users where
patient.group_id=group.group_id and group.user_id=user.user_id and
user_id $authenticated user.
Are there better (and more readable ways) in rails to do this?
is there a plugin which supports this kind of authorization