mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-13 01:28:11 +00:00
fix: 离职员工仍可以接收到邮件的问题
This commit is contained in:
parent
798d62c3e2
commit
ec9544db0a
@ -125,7 +125,7 @@ class EmailNoticeTask extends AbstractTask
|
||||
if (empty($userids)) {
|
||||
return;
|
||||
}
|
||||
$users = User::whereIn('userid', $userids)->get();
|
||||
$users = User::whereIn('userid', $userids)->whereNull('disable_at')->get();
|
||||
if (empty($users)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user