public function initService($serviceId, $serviceName, $actionName) { parent::initService($serviceId, $serviceName, $actionName); // since plugin might be using KS impersonation, we need to validate the requesting // partnerId from the KS and not with the $_POST one if (!FileSyncPlugin::isAllowedPartner($this->getPartnerId())) { throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, FileSyncPlugin::PLUGIN_NAME); } }
public static function dependsOn() { $dependency = new KalturaDependency(FileSyncPlugin::getPluginName()); return array($dependency); }