changed perms for viewing tickets in detail view code. also added perm in todo detail template