From eeb3ec3b77eab428a75fff7ef948285e71d69fa3 Mon Sep 17 00:00:00 2001 From: Favour Olayinka Date: Mon, 22 Apr 2024 14:59:02 +0100 Subject: [PATCH] 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 --- app/Service/Forms/FormCleaner.php | 3 ++- tests/Feature/Forms/FormTest.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Service/Forms/FormCleaner.php b/app/Service/Forms/FormCleaner.php index 3d350489..07148e1c 100644 --- a/app/Service/Forms/FormCleaner.php +++ b/app/Service/Forms/FormCleaner.php @@ -36,7 +36,8 @@ class FormCleaner ]; private array $formNonTrialingDefaults = [ - 'custom_code' => null, + // Custom code protection disabled for now + // 'custom_code' => null, ]; private array $fieldDefaults = [ diff --git a/tests/Feature/Forms/FormTest.php b/tests/Feature/Forms/FormTest.php index 648f55fd..864f4b5b 100644 --- a/tests/Feature/Forms/FormTest.php +++ b/tests/Feature/Forms/FormTest.php @@ -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.');