Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117665166
D5487.1774872643.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
587 B
Referenced Files
None
Subscribers
None
D5487.1774872643.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5487: Allow service accounts to impersonate local users
Attached
Detach File
Event Timeline