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.

fix

Andras Bacsai575338609b1d
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 181e26348c..a12d6b02d1 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -345,7 +345,12 @@ function send_user_an_email(MailMessage $mail, string $email, ?string $cc = null
}
function isTestEmailEnabled($notifiable)
{
- return data_get($notifiable, 'smtp_enabled') || data_get($notifiable, 'resend_enabled');
+ if (data_get($notifiable, 'use_instance_email_settings') && isInstanceAdmin()) {
+ return true;
+ } else if (data_get($notifiable, 'smtp_enabled') || data_get($notifiable, 'resend_enabled') && auth()->user()->isAdminFromSession()) {
+ return true;
+ }
+ return false;
}
function isEmailEnabled($notifiable)
{