function quiz_update_7513 in Quiz 7.5
Same name and namespace in other branches
- 7.6 quiz.install \quiz_update_7513()
Grant the "view own quiz results" to the authenticated user. This permission was not checked before so we are adding it for a clean upgrade path.
File
- ./
quiz.install, line 1058 - Quiz install schema for installing the quiz module.
Code
function quiz_update_7513() {
drupal_set_message('The "view own quiz results" permission has been added to the authenticated user role because it was not checked in previous 5.x releases of Quiz.', 'warning');
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array(
'view own quiz results',
));
}