You are here

function _course_reports_access in Course 8.3

Same name and namespace in other branches
  1. 8.2 course.module \_course_reports_access()
  2. 7.2 course.module \_course_reports_access()
  3. 7 course.module \_course_reports_access()
  4. 3.x course.module \_course_reports_access()

Access callback for course objects menu tab.

File

./course.module, line 1088
course.module Core functionality for Courses.

Code

function _course_reports_access($node) {
  return $node
    ->access('update') || Drupal::currentUser()
    ->hasPermission('access all course reports');
}