There are cases when a TA might have only :view_all_grades
permission. This allows the link to be visible to those
users.
fixes GRADE-835
Test Plan
- Create a custom role with only View All Grades and View
Discussions permissions. View Discussions is necessary
because you can't navigate to the discussions page
otherwise.
- Create a graded discussion as a teacher.
- Create an assignment of type external tool as a teacher.
- Navigate to that discussion as the custom role and verify that
the speedgrader link is available in the three-dot menu of the
discussion.
- Navigate to the external tools assignment and verify that the
speedgrader link is available.
Change-Id: I259fc4a4d2f8322f5c41dff044320f5deab5ba57
Reviewed-on: https://gerrit.instructure.com/154230
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Reviewed-by: Adrian Packel <apackel@instructure.com>
QA-Review: Adrian Packel <apackel@instructure.com>
Product-Review: Sidharth Oberoi <soberoi@instructure.com>