public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     myPartnerUtils::addPartnerToCriteria(new AnnotationPeer(), $this->getPartnerId(), $this->private_partner_data, $this->partnerGroup(), $this->kalturaNetworkAllowed($action));
     // when session is not admin, allow access to user entries only
     if (!$this->getKs() || !$this->getKs()->isAdmin()) {
         AnnotationPeer::setDefaultCriteriaFilterByKuser();
     }
     if (!AnnotationPlugin::isAllowedPartner(kCurrentContext::$master_partner_id)) {
         throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName);
     }
 }