diff --git a/composer.json b/composer.json index 1fcfbf720..eaa90bc56 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "solspace/craft-freeform", "description": "The most reliable form builder that's ready for wherever your project takes you.", - "version": "5.8.6", + "version": "5.8.6.1", "type": "craft-plugin", "authors": [ { diff --git a/packages/plugin/src/Integrations/Captchas/ReCaptcha/ReCaptcha.php b/packages/plugin/src/Integrations/Captchas/ReCaptcha/ReCaptcha.php index 563bda962..6619a76ed 100644 --- a/packages/plugin/src/Integrations/Captchas/ReCaptcha/ReCaptcha.php +++ b/packages/plugin/src/Integrations/Captchas/ReCaptcha/ReCaptcha.php @@ -4,7 +4,6 @@ use GuzzleHttp\Client; use Solspace\Freeform\Attributes\Integration\Type; -use Solspace\Freeform\Attributes\Property\Edition; use Solspace\Freeform\Attributes\Property\Flag; use Solspace\Freeform\Attributes\Property\Input; use Solspace\Freeform\Attributes\Property\Middleware; @@ -35,8 +34,6 @@ class ReCaptcha extends BaseIntegration implements CaptchaIntegrationInterface public const BEHAVIOR_DISPLAY_ERROR = 'display-error'; public const BEHAVIOR_SEND_TO_SPAM = 'send-to-spam'; - #[Edition(Edition::PRO)] - #[Edition(Edition::LITE)] #[Flag(self::FLAG_AS_HIDDEN_IN_INSTANCE)] #[Input\Select( label: 'Captcha Type', diff --git a/packages/plugin/src/Integrations/Captchas/Turnstile/Turnstile.php b/packages/plugin/src/Integrations/Captchas/Turnstile/Turnstile.php index 871e947c9..255fa97f1 100644 --- a/packages/plugin/src/Integrations/Captchas/Turnstile/Turnstile.php +++ b/packages/plugin/src/Integrations/Captchas/Turnstile/Turnstile.php @@ -4,7 +4,6 @@ use GuzzleHttp\Client; use Solspace\Freeform\Attributes\Integration\Type; -use Solspace\Freeform\Attributes\Property\Edition; use Solspace\Freeform\Attributes\Property\Flag; use Solspace\Freeform\Attributes\Property\Input; use Solspace\Freeform\Attributes\Property\Middleware; @@ -17,8 +16,6 @@ use Solspace\Freeform\Library\Integrations\EnabledByDefault\EnabledByDefaultTrait; use Solspace\Freeform\Library\Integrations\Types\Captchas\CaptchaIntegrationInterface; -#[Edition(Edition::PRO)] -#[Edition(Edition::LITE)] #[Type( name: 'Turnstile', type: Type::TYPE_CAPTCHAS, diff --git a/packages/plugin/src/Integrations/Captchas/hCaptcha/hCaptcha.php b/packages/plugin/src/Integrations/Captchas/hCaptcha/hCaptcha.php index 7da82fd71..a81c2a89b 100644 --- a/packages/plugin/src/Integrations/Captchas/hCaptcha/hCaptcha.php +++ b/packages/plugin/src/Integrations/Captchas/hCaptcha/hCaptcha.php @@ -4,7 +4,6 @@ use GuzzleHttp\Client; use Solspace\Freeform\Attributes\Integration\Type; -use Solspace\Freeform\Attributes\Property\Edition; use Solspace\Freeform\Attributes\Property\Flag; use Solspace\Freeform\Attributes\Property\Input; use Solspace\Freeform\Attributes\Property\Validators\Required; @@ -17,8 +16,6 @@ use Solspace\Freeform\Library\Integrations\EnabledByDefault\EnabledByDefaultTrait; use Solspace\Freeform\Library\Integrations\Types\Captchas\CaptchaIntegrationInterface; -#[Edition(Edition::PRO)] -#[Edition(Edition::LITE)] #[Type( name: 'hCaptcha', type: Type::TYPE_CAPTCHAS, diff --git a/packages/plugin/src/controllers/SubmissionsController.php b/packages/plugin/src/controllers/SubmissionsController.php index b833175ef..03f105059 100644 --- a/packages/plugin/src/controllers/SubmissionsController.php +++ b/packages/plugin/src/controllers/SubmissionsController.php @@ -55,10 +55,8 @@ public function actionIndex(?string $formHandle = null): Response $registerAssetsEvent = new RegisterEvent(\Craft::$app->view); $this->trigger(self::EVENT_REGISTER_INDEX_ASSETS, $registerAssetsEvent); - if (Freeform::getInstance()->isPro()) { - if (PermissionHelper::checkPermission(Freeform::PERMISSION_ACCESS_QUICK_EXPORT)) { - \Craft::$app->view->registerAssetBundle(ExportButtonBundle::class); - } + if (PermissionHelper::checkPermission(Freeform::PERMISSION_ACCESS_QUICK_EXPORT)) { + \Craft::$app->view->registerAssetBundle(ExportButtonBundle::class); } $forms = $this->getFormsService()->getAllForms(); diff --git a/packages/plugin/src/templates/export/profiles/index.twig b/packages/plugin/src/templates/export/profiles/index.twig index 48bffc287..cddc94131 100644 --- a/packages/plugin/src/templates/export/profiles/index.twig +++ b/packages/plugin/src/templates/export/profiles/index.twig @@ -11,7 +11,7 @@ {% block actionButton %} - {% if craft.freeform.pro and currentUser.can("freeform-pro-exportProfilesManage") %} + {% if freeform.edition.atLeast('lite') and currentUser.can("freeform-pro-exportProfilesManage") %}