More CakePHP notes

Get the authentication details in a view. Permission based so in a user with low rights you need to specifically identify the property you want

<?php debug($this->Session->read('Auth.User')); // works with power user ?>
<?php debug($this->Session->read('Auth.User.username')); // works everywhere ?>

If you want to make a banned view (under ACL) accessible, in the Controller use Auth->Allow:

public function beforeFilter() {
	parent::beforeFilter();
	// this makes the index visible to everyone
	$this->Auth->allow('index', 'view');
}