From 2cf3233f546dfa38521bd9ec280dbec9a9fb7612 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 12 Dec 2008 00:59:30 +0000 Subject: Get rid of all pseudo users and pseudo groups, while preserving all other functionality. This makes our user/group and access code fully consistent. --- core/models/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/models') diff --git a/core/models/item.php b/core/models/item.php index 866315f7..3f3db0a7 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -224,7 +224,7 @@ class Item_Model extends ORM_MPTT { public function __get($column) { if (substr($column, -5) == "_edit") { $real_column = substr($column, 0, strlen($column) - 5); - if (Session::instance()->get("user", false)) { + if (access::can("edit", $this)) { return "id}-{$real_column}\">" . "{$this->$real_column}"; } else { -- cgit v1.2.3