fix
This commit is contained in:
@@ -345,7 +345,12 @@ function send_user_an_email(MailMessage $mail, string $email, ?string $cc = null
|
|||||||
}
|
}
|
||||||
function isTestEmailEnabled($notifiable)
|
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)
|
function isEmailEnabled($notifiable)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user