Skip to content

Beautiful Open-Source Form Builder

Fix form cached subscribe status

Julien Nahuma5c7ed0d6436
diff --git a/app/Models/Forms/Form.php b/app/Models/Forms/Form.php
index 05972745a..4ad2424e4 100644
--- a/app/Models/Forms/Form.php
+++ b/app/Models/Forms/Form.php
@@ -146,8 +146,8 @@ class Form extends Model implements CachableAttributes
public function getIsProAttribute()
{
- return $this->remember('is_pro', 15 * 60, function (): bool {
- return optional($this->workspace)->is_pro;
+ return $this->remember('is_pro', 15 * 60, function (): ?bool {
+ return optional($this->workspace)->is_pro === true;
});
}