ucsb-cs156-f23 / proj-organic-f23-6pm-1

https://ucsb-cs156-f23.github.io/proj-organic-f23-6pm-1/
0 stars 0 forks source link

Added PUT operation for editing course in CourseController #38

Closed chauAlex closed 10 months ago

chauAlex commented 10 months ago

Added the PUT operation in CourseController to edit courses by a user who is an admin/instructor AND is apart of the staff list of the given course. Created tests for a staff editing a course, a non-staff can't edit a course, and a staff cannot edit a non-existent course. Also added a custom exception for the user not being in the staff list of the given course.

Closes #27