Does anybody know how to authorize state transitions? I'm using state_machine in my rails app to define the state of an Article (published or unpublished). I'm also using declarative_authorization to determine the authorizations a user has. But how do I authorize a state transistion (determine if the user has the right to publish the Article)?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
authorize state transitions | 8 | 249 | June 2, 2010 | |
authentication and authorization | 0 | 91 | July 19, 2009 | |
acts_as_state_machine: bug?! obj.save doesn't work... | 6 | 178 | April 21, 2009 | |
acts_as_state_machine vs ActiveRecord::Observer, ActiveRecord::Validations, ActiveRecord::Callbacks, etc. | 1 | 184 | September 8, 2008 | |
authentication and authorization | 0 | 92 | March 12, 2007 |