summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-08 10:46:53 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-08 10:46:53 +0000
commitbd3a472be7979aadb730f7ac6caaa3c47a6ce11c (patch)
tree41946e5e3cc46ee12604ff1245e51e01d55df8d5 /core/helpers
parent85239ec75034fb9ad0f3c2d26d77d760a4e6dfd7 (diff)
Rename access::can() to access::group_can()
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/access.php4
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");