Update controller_actions.ctp

In newer versions of Cake the "allowOnly" function doesn't exist anymore, it was replaced by that if.
<a href="http://stackoverflow.com/questions/15563902/cakephp-2-3-method-onlyallow-does-not-exist">Visit this link</a> for more info about a more detailed explanation.