Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
COmanage Registry 0.4 (Reshaped Cake)
Description
In Controller/AppController.php the beforeFilter() method for the AppController class is where we are configuring authorization handlers. Prior to CakePHP 2.0.x the handler was configured as
$this->Auth->authorize = 'controller';
With the change to CakePHP 2.0.x this needs to be
$this->Auth->authorize = array('Controller');
The configuration of authorization handlers is detailed in the CakePHP 2.0.x documentation at
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html
in the section 'Configuring Authorization handlers'.
Specifically it says
You can configure authorization handlers in your controller's beforeFilter or, in the $components array. You can pass configuration information into each authorization object, using an array:
<?php
// Basic setup
$this->Auth->authorize = array('Controller');
// Pass settings in
$this->Auth->authorize = array(
'Actions' => array('actionPath' => 'controllers/'),
'Controller'
);