public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     $partner = PartnerPeer::retrieveByPK($this->getPartnerId());
     if ($actionName == "anonymousRank" && $partner->getEnabledService(KalturaPermissionName::FEATURE_LIKE)) {
         throw new KalturaAPIException(KalturaErrors::ACTION_FORBIDDEN, "anonymousRank");
     }
 }
Ejemplo n.º 2
0
 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     // KAsyncValidateLiveMediaServers lists all live entries of all partners
     if ($this->getPartnerId() == Partner::BATCH_PARTNER_ID && $actionName == 'list') {
         myPartnerUtils::resetPartnerFilter('entry');
     }
     if (in_array($this->getPartner()->getStatus(), array(Partner::PARTNER_STATUS_CONTENT_BLOCK, Partner::PARTNER_STATUS_FULL_BLOCK))) {
         throw new kCoreException("Partner blocked", kCoreException::PARTNER_BLOCKED);
     }
 }
 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     $this->applyPartnerFilterForClass('category');
 }
 /**
  * @ignore
  */
 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     parent::applyPartnerFilterForClass(new categoryPeer());
 }
Ejemplo n.º 5
0
 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     parent::applyPartnerFilterForClassNoKalturaNetwork(new accessControlPeer());
 }