ucsb-cs156-s21 / proj-ucsb-cs-las

https://proj-ucsb-cs-las.herokuapp.com/
MIT License
2 stars 3 forks source link

As an Admin, adding a new tutor assignment might give an authentication error, when it could be a courses error #234

Open wongjulian4213 opened 3 years ago

wongjulian4213 commented 3 years ago

Bug Report

When there are no courses, adding a new Tutor Assignment will give the error "You must be an instructor or an admin to create new Tutor Assignments." This could be changed to something like "There are no courses available to make a tutor assignment with"

Steps to Reproduce

  1. Remove all courses from the courses tab
  2. Go to the tutor assignment tab and click add new tutor assignment

Expected / Desired Behavior

Should prompt the user to add courses

Observed / Actual Behavior

Tells the user that they're not an admin