Page MenuHomePhorge

D5487.1774872643.diff
No OneTemporary

Authored By
Unknown
Size
587 B
Referenced Files
None
Subscribers
None

D5487.1774872643.diff

diff --git a/src/app/Policy/SmtpAccess.php b/src/app/Policy/SmtpAccess.php
--- a/src/app/Policy/SmtpAccess.php
+++ b/src/app/Policy/SmtpAccess.php
@@ -81,6 +81,13 @@
return true;
}
+ // Service accounts may impersonate all local users
+ if ($user->role == User::ROLE_SERVICE) {
+ return User::where('email', $email)
+ ->whereNot('status', '&', User::STATUS_SUSPENDED)
+ ->exists();
+ }
+
// Is it one of user's aliases?
$alias = $user->aliases()->where('alias', $email)->first();

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 30, 12:10 PM (2 d, 23 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18807165
Default Alt Text
D5487.1774872643.diff (587 B)

Event Timeline