diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-08 10:46:53 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-08 10:46:53 +0000 |
commit | bd3a472be7979aadb730f7ac6caaa3c47a6ce11c (patch) | |
tree | 41946e5e3cc46ee12604ff1245e51e01d55df8d5 /core/helpers/access.php | |
parent | 85239ec75034fb9ad0f3c2d26d77d760a4e6dfd7 (diff) |
Rename access::can() to access::group_can()
Diffstat (limited to 'core/helpers/access.php')
-rw-r--r-- | core/helpers/access.php | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |