Updating instance method calls in AclComponent.

This commit is contained in:
mark_story 2010-09-08 22:48:21 -04:00
parent 2b3099fa70
commit 12338a0c16

View file

@ -163,7 +163,7 @@ class AclComponent extends Component {
*/ */
public function grant($aro, $aco, $action = "*") { public function grant($aro, $aco, $action = "*") {
trigger_error(__('AclComponent::grant() is deprecated, use allow() instead'), E_USER_WARNING); trigger_error(__('AclComponent::grant() is deprecated, use allow() instead'), E_USER_WARNING);
return $this->_Instance->grant($aro, $aco, $action); return $this->_Instance->allow($aro, $aco, $action);
} }
/** /**
@ -176,7 +176,7 @@ class AclComponent extends Component {
*/ */
public function revoke($aro, $aco, $action = "*") { public function revoke($aro, $aco, $action = "*") {
trigger_error(__('AclComponent::revoke() is deprecated, use deny() instead'), E_USER_WARNING); trigger_error(__('AclComponent::revoke() is deprecated, use deny() instead'), E_USER_WARNING);
return $this->_Instance->revoke($aro, $aco, $action); return $this->_Instance->deny($aro, $aco, $action);
} }
} }