From d5e906f086edd3e41af0c127a81a23dbf4b8f26d Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 8 Sep 2010 22:49:00 -0400 Subject: [PATCH] Adding deprecation flags. --- cake/libs/controller/components/acl.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cake/libs/controller/components/acl.php b/cake/libs/controller/components/acl.php index 5fac438d2..6f78cd274 100644 --- a/cake/libs/controller/components/acl.php +++ b/cake/libs/controller/components/acl.php @@ -160,6 +160,7 @@ class AclComponent extends Component { * @param string $aco ACO The controlled object identifier. * @param string $action Action (defaults to *) * @return boolean Success + * @deprecated */ public function grant($aro, $aco, $action = "*") { trigger_error(__('AclComponent::grant() is deprecated, use allow() instead'), E_USER_WARNING); @@ -173,6 +174,7 @@ class AclComponent extends Component { * @param string $aco ACO The controlled object identifier. * @param string $action Action (defaults to *) * @return boolean Success + * @deprecated */ public function revoke($aro, $aco, $action = "*") { trigger_error(__('AclComponent::revoke() is deprecated, use deny() instead'), E_USER_WARNING);