Skip to content

Commit

Permalink
SAK-40990 GB: Hidden rubrics should not display in the Student Review…
Browse files Browse the repository at this point in the history
… Mode
  • Loading branch information
bgarciaentornos authored and Miguel Pellicer committed Nov 26, 2018
1 parent 3f21ecf commit f8a235c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public void onClick(final AjaxRequestTarget target) {
}
final Optional<ToolItemRubricAssociation> rubricAssociation = GradeSummaryTablePanel.this.rubricsService.getRubricAssociation(tool, assignmentId);
if (rubricAssociation.isPresent()) {
if(!GradeSummaryTablePanel.this.businessService.isUserAbleToEditAssessments()){
if(showingStudentView || !GradeSummaryTablePanel.this.businessService.isUserAbleToEditAssessments()){
boolean hidePreview = rubricAssociation.get().getParameter("hideStudentPreview") == null ? false : rubricAssociation.get().getParameter("hideStudentPreview");
rubricIcon.setVisible(!hidePreview);
} else {
Expand Down

0 comments on commit f8a235c

Please sign in to comment.