Skip to content

Commit

Permalink
Merge pull request #46 from dreamfactorysoftware/3.0-fix-importer-eve…
Browse files Browse the repository at this point in the history
…nt-script

Fix missing NOT
  • Loading branch information
yaroslavmo authored Jul 19, 2019
2 parents f25c94f + 4ce289a commit 06e01cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Package/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06e01cd

Please sign in to comment.