function _course_reports_access in Course 8.2
Same name and namespace in other branches
- 8.3 course.module \_course_reports_access()
- 7.2 course.module \_course_reports_access()
- 7 course.module \_course_reports_access()
- 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');
}