function _course_reports_access in Course 3.x
Same name and namespace in other branches
- 8.3 course.module \_course_reports_access()
- 8.2 course.module \_course_reports_access()
- 7.2 course.module \_course_reports_access()
- 7 course.module \_course_reports_access()
Access callback for course objects menu tab.
File
- ./
course.module, line 938 - course.module Core functionality for Courses.
Code
function _course_reports_access($node) {
return $node
->access('update') || Drupal::currentUser()
->hasPermission('access all course reports');
}