params['prefix']) && $this->params['prefix'] == 'admin') { $authorized = $this->Auth->user('role') === 'admin'; } return $authorized; } }