function course_enrollment_access in Course 7
Same name and namespace in other branches
- 7.2 course.module \course_enrollment_access()
Access callback for the entity API.
1 string reference to 'course_enrollment_access'
- course_entity_info in ./
course.module - Implements hook_entity_info().
File
- ./
course.module, line 3091 - course.module Core functionality for Courses.
Code
function course_enrollment_access($op, $entity, $account = NULL, $entity_type) {
return user_access('administer course') || user_access('administer course enrollments');
}