re-enable custom scripts while trialing (#383)

* feat: disable custom script for  trial users

* fix: logic error for trial users

* disable trialing check for  custom script

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Favour Olayinka 2024-04-22 14:59:02 +01:00 committed by GitHub
parent f07f1d16d6
commit eeb3ec3b77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,8 @@ class FormCleaner
];
private array $formNonTrialingDefaults = [
'custom_code' => null,
// Custom code protection disabled for now
// 'custom_code' => null,
];
private array $fieldDefaults = [

View File

@ -190,4 +190,4 @@ it('can create form with custom scripts', function () {
'title' => $form->title,
'custom_code' => null
]);
});
})->skip(true, 'Trialing custom script form cleaning disabled for now.');