mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Updating instance method calls in AclComponent.
This commit is contained in:
parent
2b3099fa70
commit
12338a0c16
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue