/**
  * Return true if $user can link this task
  *
  * @param Contact $user
  * @return boolean
  */
 function canLinkObject(Contact $user)
 {
     if (can_read($user, $this->getMembers(), $this->getObjectTypeId())) {
         return can_link_objects($user);
     }
     return parent::canLinkObject();
 }
 /**
  * Returns true if user can link an object to this object
  *
  * @param Contact $user
  * @return boolean
  */
 function canLinkObject(Contact $user)
 {
     if (!$this->isLinkableObject()) {
         return false;
     }
     if (can_link_objects($user)) {
         return $this->canEdit($user);
     } else {
         return false;
     }
 }