canvas-lms/app/presenters
Nick Pitrak 820c64dd73 restrict access to submission details page
closes GRADE-1053
closes GRADE-1054

test plan:
- set the Anonymous Moderated Marking flag for your account
- set the Anonymous Marking flag for your course
- create a course
- add an account admin, a teacher, and a student
- create an assignment
- as a site admin
  - browse to the grades page for the student
  - write down the grades page url
  - ensure the submission details link for the assignment is present
  - click the submission details link for the assignment
  - ensure the link renders the grades page
  - write down the submission details url
- masquerade as the account admin
  - browse to the grades page url
  - ensure the submission details link for the assignment is not present
  - browse to the submission details url
  - ensure the url is forbidden
- masquerade as the teacher
  - browse to the grades page url
  - ensure the submission details link for the assignment is not present
  - browse to the submission details url
  - ensure the url is forbidden
- masquerade as the student
  - browse to the grades page url
  - ensure the submission details link for the assignment is present
  - browse to the submission details url
  - ensure the link renders the grades page

Change-Id: Id88b33f79f7fa46c9b6a2349f90e92c96fc2ac21
Reviewed-on: https://gerrit.instructure.com/149529
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Reviewed-by: Adrian Packel <apackel@instructure.com>
QA-Review: Adrian Packel <apackel@instructure.com>
Tested-by: Jenkins
Product-Review: Sidharth Oberoi <soberoi@instructure.com>
2018-05-15 21:20:41 +00:00
..
quizzes Remove Quizzes::QuizSubmission#questions_as_object 2018-04-02 20:45:25 +00:00
authentication_providers_presenter.rb rename AccountAuthorizationConfig* to AuthenticationProvider* 2018-04-26 16:03:47 +00:00
course_for_menu_presenter.rb inform student planner of new gradebook use 2017-12-13 19:24:09 +00:00
discussion_topic_presenter.rb da licença part 20 2017-04-27 21:51:29 +00:00
grade_summary_assignment_presenter.rb restrict access to submission details page 2018-05-15 21:20:41 +00:00
grade_summary_presenter.rb stop caching grade summary presenter statistics 2018-05-11 21:35:05 +00:00
grades_presenter.rb da licença part 20 2017-04-27 21:51:29 +00:00
grading_period_grade_summary_presenter.rb da licença part 20 2017-04-27 21:51:29 +00:00
mark_done_presenter.rb da licença part 20 2017-04-27 21:51:29 +00:00
override_list_presenter.rb always show an accurate count of current students in an override 2017-12-07 15:28:23 +00:00
override_tooltip_presenter.rb da licença part 20 2017-04-27 21:51:29 +00:00
section_tab_presenter.rb Fix LTI2 Link Url Generation 2018-05-10 20:08:48 +00:00
to_do_list_presenter.rb allow practice quizzes that have been graded 2017-11-08 16:56:23 +00:00