Closed RiedleroD closed 3 months ago
merging this before it's done so I can go work on getting this plugin to run at all. The remaining API endpoints will be implemented later.
current todolist that was meant for this PR:
update_slot for supervisors room, size, weekday, start/end units if overfull, throw error AFTER submitting changes, and let the teacher handle it if room already has an associated slot, throw error
delete_slot for supervisors unbook all associated reservations
add_slot_supervisor for supervisors
get_slot_reservations for supervisors students should not be able to see each other, for data privacy reasons
get_my_reservations should only return future and ongoing reservations to reduce data bloat
add_slot_filter for supervisors additive, i.e. needs to be called once per filter to add. filters are ORed, so technically the opposite of a filter…
more like holes in an existing filter that doesn't let anything through. "additives"? …whatever NOTE: if (!has_capability(user_helper::CAPABILITY_TEACHER, $context, $user))
delete_slot_filter for supervisors unbook reservations for this slot that no longer match any filters
get_manageable_courses returns all courses this user has managerial access to (i.e. teacher, manager, admin) this should probably go into namespace courses
NOTIFS:
see LP-143, LP-144, LP-145