Update task.tpl

put perms check in the right spot