mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-11 17:40:57 -04:00
Add a "can_edit" field to the Item_Model's REST output. It's
applicable to the current user.
This commit is contained in:
@@ -951,6 +951,7 @@ class Item_Model extends ORM_MPTT {
|
||||
$data["resize_url"] = $tmp;
|
||||
}
|
||||
$data["thumb_url"] = $this->thumb_url(true);
|
||||
$data["can_edit"] = access::can("edit", $this);
|
||||
|
||||
// Elide some internal-only data that is going to cause confusion in the client.
|
||||
foreach (array("relative_path_cache", "relative_url_cache", "left_ptr", "right_ptr",
|
||||
|
||||
Reference in New Issue
Block a user