# GEMS Education - Part 4
New Concepts: groups, record rules, QWeb templates, controllers
GEMS Education wishes to implement a portal for the school teachers. This will allow teachers to view their teaching sessions. Both active and inactive sessions should be displayed on the portal view once they log in.
# Active Sessions
A session can be considered as active if the current date falls between its start and end dates. A suggested approach is to add a computed field in the model that will manage this state. Then, the field can be used in the portal views appropriately.
# Data Access Control
Add a new res.groups record to add a dedicated group for users that are teachers. Then, through record rules, ensure that a teacher only sees their own sessions when logged in.
# Portal
In the portal view, add a list view and a form view for the sessions, similar to how standard Odoo implemented for sale orders. In the list view, sort the sessions showing the active ones first. In the form view, display all the relevant information in detail i.e. related fields from the subject, classroom, school and student (res.partner) models. Lastly, ensure that only teachers can access these views.