public function shouldConsumeJobStatusEvent(BatchJob $dbBatchJob) { if ($dbBatchJob->getJobType() == BatchJobType::STORAGE_EXPORT && $dbBatchJob->getJobSubType() == KontikiPlugin::getStorageProfileProtocolCoreValue(KontikiStorageProfileProtocol::KONTIKI)) { if (KontikiPlugin::isAllowedPartner($dbBatchJob->getPartnerId())) { return true; } } return false; }
public function validateForInsert($propertiesToSkip = array()) { if (!KontikiPlugin::isAllowedPartner(kCurrentContext::getCurrentPartnerId())) { throw new KalturaAPIException(KalturaErrors::PERMISSION_NOT_FOUND, 'Kontiki permission not found for partner'); } }