Пример #1
0
 public function isTargetListMember(MailingList $mailing_list, $orCampaignAdmin = false, $andCampaignMember = true)
 {
     if ($orCampaignAdmin && $this->isCampaignAdmin($mailing_list->getCampaign())) {
         return true;
     }
     if ($andCampaignMember && !$this->isCampaignMember($mailing_list->getCampaign())) {
         return false;
     }
     $tr = $this->getTargetListRights($mailing_list);
     return $tr && $tr->getActive();
 }