From f78042a9487c633442a3495c6b30f68829590f7a Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Fri, 14 Feb 2025 06:00:52 -0600 Subject: [PATCH] Add the "Grader" header back to the Assignments when the "Grade Problem" link is shown. I removed the `canScoreProblems` flag in #1884, but forgot to remove the instance that is used for the header of the table. As such the header row ends up having one less column than the entries of the table for those that have permission to use the problem graders. --- templates/ContentGenerator/ProblemSet/problem_list.html.ep | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/ContentGenerator/ProblemSet/problem_list.html.ep b/templates/ContentGenerator/ProblemSet/problem_list.html.ep index c5e76c1137..4332909538 100644 --- a/templates/ContentGenerator/ProblemSet/problem_list.html.ep +++ b/templates/ContentGenerator/ProblemSet/problem_list.html.ep @@ -35,7 +35,8 @@ <%= maketext('Counts for Parent') %> % } - % if ($c->{canScoreProblems}) { + % if ($authz->hasPermissions(param('user'), 'access_instructor_tools') + % && $authz->hasPermissions(param('user'), 'problem_grader')) { <%= maketext('Grader') %> % }