updated pipeline query to allow admin user to get all jobs independant of user