Close #389
Close #386
Makes way to check if study records are published/archived that are using this teacher.