edulution-io / edulution-ui

https://edulution.io/
2 stars 0 forks source link

NIEDUUI-344: Filter for current school in classmanagement pages #189

Open Maddi02 opened 1 week ago

Maddi02 commented 1 week ago

This PR introduces a feature that restricts users' access to specific classes and printers based on their assigned school. The changes ensure that users can only view and interact with resources that are available to their associated school.

It is important to clarify if handling multiple school assignments per teacher is a relevant use case, as this scenario is not supported in the current implementation.

Maddi02 commented 3 days ago

As mentioned in the meeting, with the introduction of the 'school' field in the JWT, we can use this attribute to send it directly to the backend. This will allow us to filter which school classes should be returned to the user.