check if the task is future or ongoing to send email and notification on unassign user

This commit is contained in:
2026-03-19 08:44:12 +01:00
parent 5d256637ec
commit ad6a0f6e90
+1 -1
View File
@@ -242,7 +242,7 @@ class TasksController extends Controller
$user = User::find($id);
if ($user) {
if ($user && Carbon::now()->lessThanOrEqualTo($task->end)) {
$task->users()->detach($id);
broadcast(new VolunteerUnassignedFromTask(