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