/**
* Special case: a private bookmark has entities_id==-1 => we cannot check it
* @see CommonDBTM::canViewItem()
*
* @since version 0.85
**/
function canViewItem()
{
if ($this->fields['is_private'] == 1 && $this->fields['users_id'] == Session::getLoginUserID()) {
return true;
}
return parent::canViewItem();
}