public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if (!LikePlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, LikePlugin::PLUGIN_NAME); } if ((!kCurrentContext::$ks_uid || kCurrentContext::$ks_uid == "") && $actionName != "list") { throw new KalturaAPIException(KalturaErrors::INVALID_USER_ID); } }
public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); if (!LikePlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName); } if (!kCurrentContext::$ks_uid || kCurrentContext::$ks_uid == "") { throw new KalturaAPIException(KalturaErrors::INVALID_USER_ID); } }