Displaying 1 result from an estimated 1 matches for "draft_numb".
Did you mean:
draft_number
2008 Mar 06
2
GateKeeper, Model Level Permissions Management
...s.
GateKeeper makes this absurdly easy to setup and maintain by allowing
you to simply make declarations right in your model like...
createable_by_my_author
crudable_by_admin
readable_by_premium_member :if => :published?
updateable_by_boss_of_my_author :unless => lambda {|article|
article.draft_number < 3 }
readable_as_my_parent
If a user on your site tries to perform an action on an instance of any
ActiveRecord model, and permission to perform that action hasn''t been
explicitly granted to that user via a declaration like the samples
above, then the action is canceled and an e...