public function view(UserPolicy $user, Task $task)
    {
        if ($user->canDo('task.task.view') && $user->isAdmin()) {
            return true;
        }

        return $user->id == $task->user_id && get_class($user) === $task->user_type;
    }