Rails multi level model security
Posted
by rballz
on Stack Overflow
See other posts from Stack Overflow
or by rballz
Published on 2010-05-02T07:42:11Z
Indexed on
2010/05/02
7:47 UTC
Read the original article
Hit count: 175
ruby
|ruby-on-rails
I have the need to do the following in Rails to mirror a desktop application:
a User and an Office 'owns' a record, if you don't own the record on a user or office level you're kicked into the public realm.
user gets read,write,delete to the model record office gets read/write/delete to the model record other or public gets read/write/delete to the model record
e.g.
UserA owns a model record with read/write/delete OfficeA owns a model with read/write other/public gets read
I was wondering if a plugin/gem existed to grant this functionality?
© Stack Overflow or respective owner