diff options
Diffstat (limited to 'core/models/item.php')
-rw-r--r-- | core/models/item.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 "<span class=\"gInPlaceEdit gEditField-{$this->id}-{$real_column}\">" . "{$this->$real_column}</span>"; } else { |