Well it sounds like you just answered your question. You should
associate your other models to your user but the limit their access to
it with the permissions that are associated to the roles that they
have. Take a look at something like role_requirement. A user can have
more than one role. IE; One user could be an actor, director, and an
extra while another director isn't an actor but is an extra... I hope
this makes some sense... It's early for me.

On Feb 20, 2:51 am, Mrkris Mrkris <[email protected]>
wrote:
> MaD wrote:
> > well that's more or less a questions of rights. i guess you could
> > easily manage that with a role-based authentication system.
>
> How would you cleanly define a relationship between a user and other
> models based off a role?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to