check if the task is future or ongoing to send email and notification on unassign user
This commit is contained in:
@@ -242,7 +242,7 @@ class TasksController extends Controller
|
|||||||
|
|
||||||
$user = User::find($id);
|
$user = User::find($id);
|
||||||
|
|
||||||
if ($user) {
|
if ($user && Carbon::now()->lessThanOrEqualTo($task->end)) {
|
||||||
$task->users()->detach($id);
|
$task->users()->detach($id);
|
||||||
|
|
||||||
broadcast(new VolunteerUnassignedFromTask(
|
broadcast(new VolunteerUnassignedFromTask(
|
||||||
|
|||||||
Reference in New Issue
Block a user