Skip to content

Beautiful Open-Source Form Builder

Fix the user issue

Julien Nahumdc5a828b8e51
diff --git a/app/Models/User.php b/app/Models/User.php
index 3ce5c21d8..f9cabfffe 100644
--- a/app/Models/User.php
+++ b/app/Models/User.php
@@ -154,7 +154,7 @@ class User extends Authenticatable implements JWTSubject
return $this->hasMany(License::class);
}
- public function activeLicense(): License
+ public function activeLicense(): ?License
{
return $this->licenses()->active()->first();
}