In customization of frappe education

In Frappe ERPNext, within the Education module, I created a custom role called Registrar. I also created a custom Doctype named Registrar, which includes a child table called Registrar Log. This child table contains link fields such as Academic Year, Academic Term, and Program.

My requirement is that when a user with the Registrar role logs into the system, they should only be able to view and access documents (e.g., Programs, Courses, Enrollments, Students, Instructors, etc.) that match the values specified in their Registrar Log child table.

What is the best way to implement this functionality in Frappe education?