aau-giraf / weekplanner

Main repository of the Weekplanner tablet application
GNU General Public License v3.0
15 stars 3 forks source link

Guardians can make weekplans for Trustee users. #989

Open JMyrtue opened 11 months ago

JMyrtue commented 11 months ago

Description

Currently, a Guardian user is able to make a weekplan for the Trustee, which should not be intended. If the Trustee tries to access its weekplan, the application crashes.

To Reproduce Steps to reproduce the behavior:

  1. Login to a Guardian user and identify a Trustee user.
  2. Create a Weekplan for the Trustee.
  3. Logout of the Guardian user, and login to the Trustee.
  4. Try and access the newly created weekplan.

Expected behavior \ The functionality should not be available for a Guardian when inspecting a Trustee.