# Authorize state transitions

**URL:** <https://www.ruby-forum.com/t/authorize-state-transitions/181723>\
**Category:** Rails\
**Created:** [January 17, 2010, 1:25am UTC](https://www.ruby-forum.com/t/authorize-state-transitions/181723 "2010-01-17T01:25:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjhjhj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/df788c/32.png) [@hjhjhj](https://www.ruby-forum.com/u/hjhjhj)\
**Post date:** [January 17, 2010, 1:25am UTC](https://www.ruby-forum.com/t/authorize-state-transitions/181723/1 "2010-01-17T01:25:23Z")

</div>

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)?
