Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

refactor(models): remove unnecessary cloud check in isEnabled method

Andras Bacsai63c496feeecd
diff --git a/app/Models/EmailNotificationSettings.php b/app/Models/EmailNotificationSettings.php
index ae118986fc..4459876195 100644
--- a/app/Models/EmailNotificationSettings.php
+++ b/app/Models/EmailNotificationSettings.php
@@ -70,10 +70,6 @@ class EmailNotificationSettings extends Model
public function isEnabled()
{
- if (isCloud()) {
- return true;
- }
-
return $this->smtp_enabled || $this->resend_enabled || $this->use_instance_email_settings;
}
}