rwth-acis / moodle-data-proxy

3 stars 1 forks source link

[BUG] EditingTeacher role wrong mapping #29

Closed BorisJov closed 3 years ago

BorisJov commented 3 years ago
  1. Summary - A bug was reported with a null-pointer exception regarding roles.
  2. Bug Details
    1. What? - There is a wrong declaration of the (Editing) Teacher role.
    2. Where? - Inside the alocated Map here.
    3. When?/How often? - Whenever an actor has the "Teacher" role.
    4. How?/Current state - The moodle-given data references the "editingteacher" role and the proxy is expecting "teacher".
  3. Fixed state - The map is changed to have "editingteacher" instead of "teacher".
BorisJov commented 3 years ago

Fixed bug in MoodleUser.ROLE_NAME_TO_ID map