function course_update_7137 in Course 7
Same name and namespace in other branches
- 7.2 course.install \course_update_7137()
Grant the "access course" permission to the authenticated user. This permission was not checked before so we are adding it for a clean upgrade path.
File
- ./
course.install, line 1187 - course.install Install and update functions for Courses.
Code
function course_update_7137() {
drupal_set_message('The "access course" permission has been added to the authenticated user role because it was not checked in previous releases of Course.', 'warning');
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array(
'access course',
));
}