diff --git a/include/class.thread.php b/include/class.thread.php index 14da0952d3cc4fd73f1dcd177270840cf74b8c77..2aa82cd494a89ba6f3a6c8f2adf73b519dea6bf2 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -301,6 +301,11 @@ implements Searchable { return false; break; + case $to instanceof Team: + //Referred to a Team + return ($this->getReferral($to->getId(), + ObjectModel::OBJECT_TYPE_TEAM)); + break; case $to instanceof Dept: // Refered to the dept return ($this->getReferral($to->getId(),