Forum: Ruby on Rails restrict specific model columns per user

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
John R. (Guest)
on 2006-04-22 07:48
Does anyone know a way to restrict access to specific columns in the
model to specific users?  My plan was to use the session hash to check
the permissions of the logged in user in an overridden method of the
same name as the model accessor I wanted to restrict, but the model
can't acecss the session.  Any other ideas?
Brian F. (Guest)
on 2006-04-22 09:14
Hi John,

Not sure if this is what you're after, but it might be worth a peek:

John R. (Guest)
on 2006-04-23 18:15
This looks very promising.  Thanks a lot.
This topic is locked and can not be replied to.