Fixed issue where user could create a template file and attach it to a job after it was locked or owned by a different manager