Fixed issue for Delete task button on task page

The template was checking if the current user is admin of
the current project. Instead of sending project as an argument
it was sending the task.