Updating core Auth/ACL error messages

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4518 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-02-14 20:04:00 +00:00
parent c78b777db7
commit 4c24c7b784
2 changed files with 3 additions and 2 deletions

View file

@ -351,7 +351,7 @@ class AuthComponent extends Object {
case 'controller':
$this->mapActions();
if (!isset($this->actionMap[$this->params['action']])) {
trigger_error('Auth::startup() - Attempted access of un-mapped action "' . $this->params['action'] . '"', E_USER_WARNING);
trigger_error('Auth::startup() - Attempted access of un-mapped action "' . $this->params['action'] . '" in controller "' . $this->params['controller'] . '"', E_USER_WARNING);
} else {
$valid = $this->Acl->check($this->user(), $this->action(':controller'), $this->actionMap[$this->params['action']]);
}

View file

@ -75,10 +75,11 @@ class DB_ACL extends AclBase {
$acoPath = new Set($Aco->node($aco));
if (empty($aroPath) || empty($acoPath)) {
trigger_error("DB_ACL::check() - Attempted to check permissions on/with a node that does not exist. Node references:\nAro: " . print_r($aro, true) . "\nAco: " . print_r($aco, true), E_USER_WARNING);
trigger_error("DB_ACL::check() - Failed ARO/ACO node lookup in permissions check. Node references:\nAro: " . print_r($aro, true) . "\nAco: " . print_r($aco, true), E_USER_WARNING);
return false;
}
if ($acoPath->get() == null || $acoPath->get() == array()) {
trigger_error("DB_ACL::check() - Failed ACO node lookup in permissions check. Node references:\nAro: " . print_r($aro, true) . "\nAco: " . print_r($aco, true), E_USER_WARNING);
return false;
}