/**
  * Return things to the renderer.
  *
  * @return bool Can this user view all grades (the gradebook)
  */
 public function can_view_all_grades()
 {
     $context = $this->seplment->get_course_context();
     return has_capability('gradereport/grader:view', $context) && has_capability('moodle/grade:viewall', $context);
 }