Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public static function dependsOn()
 {
     $dependency = new KalturaDependency(FileSyncPlugin::getPluginName());
     return array($dependency);
 }