diff --git a/src/Components/Package/Importer.php b/src/Components/Package/Importer.php index 335f334a..69440263 100644 --- a/src/Components/Package/Importer.php +++ b/src/Components/Package/Importer.php @@ -769,7 +769,7 @@ protected function insertEventScripts() { try { - if (class_exists(\DreamFactory\Core\Script\ServiceProvider::class)) throw new ForbiddenException('Upgrade to a paid license to import event scripts.'); + if (!class_exists(\DreamFactory\Core\Script\ServiceProvider::class)) throw new ForbiddenException('Upgrade to a paid license to import event scripts.'); if (empty($data = $this->package->getResourceFromZip('system/event_script.json'))) { // pre-2.3.0 version