Association "student" was explicitly linking to class "Student" that doesn't exist.
Underlying table was linked to users table so changed that to be consistent.
Change-Id: Iac6bb8a9b43c41bfbac949ca82a2b02327b215b2
Reviewed-on: https://gerrit.instructure.com/10434
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joe Tanner <joe@instructure.com>
don't try and accept! (or reject!) when they're not actually invited.
only show "invitation accepted/rejected" flashes when it actually
happened. don't allow previewing invitees to see unpublished courses.
don't show invitation related flashes when displaying a "you can't look
at this" page. fixes#6708.
test-plan:
- create unpublished courses in the default account and in a
non-default account
- create a user for each course and invite them as students to the courses
- try and visit the courses as the respective students
- both should see the "this course hasn't been published yet" page
- both should see no flash-notice on that page
- neither should be accepted to their course
- create a user and invite them to one of the courses as a teacher
- try and visit the course as the teacher
- should not see the "this course hasn't been published yet" page
Change-Id: I5e6ce4541621bdc3d6dac0efe62a2741f7addabf
Reviewed-on: https://gerrit.instructure.com/8079
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Hudson <hudson@instructure.com>