From bd3a472be7979aadb730f7ac6caaa3c47a6ce11c Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 8 Dec 2008 10:46:53 +0000 Subject: Rename access::can() to access::group_can() --- core/helpers/access.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers/access.php') diff --git a/core/helpers/access.php b/core/helpers/access.php index 4c623f7c..369e1897 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -71,14 +71,14 @@ class access_Core { const UNKNOWN = 2; /** - * Can this group have this permission on this item? + * Does this group have this permission on this item? * * @param integer $group_id * @param string $perm_name * @param integer $item_id * @return boolean */ - public static function can($group_id, $perm_name, $item_id) { + public static function group_can($group_id, $perm_name, $item_id) { $access = ORM::factory("access_cache")->where("item_id", $item_id)->find(); if (!$access) { throw new Exception("@todo MISSING_ACCESS for $item_id"); -- cgit v1.2.3