You are here

function course_settings_access in Course 6

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

Callback for checking course settings permission.

1 call to course_settings_access()
course_settings_menu_access in ./course.module
Menu access callback to determine if the course settings should tab should display on the course node.

File

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

Code

function course_settings_access($node) {
  global $user;
  return (user_access('edit own course products') || user_access('edit own course content')) && $node->uid == $user->uid || user_access('edit courses');
}