show speedgrader link with 'view grades' permission
test plan: * a course role with the ability to view all grades but not manage grades should be able to see a link to speedgrader in the sidebar on assignment pages (they can already visit them directly) closes #CNVS-12858 Change-Id: I97f86bcfc0cccc882bb6bca316cdfc5fd41ff4cd Reviewed-on: https://gerrit.instructure.com/97855 Tested-by: Jenkins Reviewed-by: Jeremy Stanley <jeremy@instructure.com> QA-Review: David Tan <dtan@instructure.com> Product-Review: James Williams <jamesw@instructure.com>
This commit is contained in:
parent
a81d6c3852
commit
2804626131
|
@ -1,6 +1,6 @@
|
|||
<ul class='page-action-list'>
|
||||
<h2><%= t 'titles.related_items', "Related Items" %></h2>
|
||||
<% if (@can_grade || (@context.concluded? && can_do(@context, @current_user, :read_as_admin))) && @context.allows_speed_grader? %>
|
||||
<% if (@can_view_grades || @can_grade || (@context.concluded? && can_do(@context, @current_user, :read_as_admin))) && @context.allows_speed_grader? %>
|
||||
<li id="assignment-speedgrader-link"
|
||||
<% if @assignment.unpublished? %>
|
||||
class="hidden"
|
||||
|
|
Loading…
Reference in New Issue