class AppController extends Controller { var $components = array('Acl'); function beforeFilter() { // next line will change depending on your auth system // basically getting the Id of the currently logged in user $user_id = $this->obAuth->getUserId(); $page = $this->name.DS.$this->action; $access = $this->Acl->check($user_id, $page, 'read'); //access denied (if we are in Home/home, this is Millie) if ($access === false) { echo "access denied"; exit; } //access allowed (if we are in Home/home, this is John) else { echo "access allowed"; exit; } } }