function course_admin_access in Course 8.3
Same name and namespace in other branches
- 8.2 course.module \course_admin_access()
- 7.2 course.module \course_admin_access()
- 7 course.module \course_admin_access()
- 3.x course.module \course_admin_access()
Can the user access the course administration pages?
File
- ./
course.module, line 1095 - course.module Core functionality for Courses.
Code
function course_admin_access() {
return Drupal::currentUser()
->hasPermission('administer course') || Drupal::currentUser()
->hasPermission('access course administration area');
}