function _quiz_user_results_access in Quiz 6.4
Same name and namespace in other branches
- 8.4 quiz.module \_quiz_user_results_access()
- 7.6 quiz.module \_quiz_user_results_access()
- 7 quiz.module \_quiz_user_results_access()
- 7.4 quiz.module \_quiz_user_results_access()
Determine who should have access to the My results tab.
1 string reference to '_quiz_user_results_access'
- quiz_menu in ./
quiz.module - Implementation of hook_menu().
File
- ./
quiz.module, line 3775 - Quiz Module
Code
function _quiz_user_results_access($user_id) {
global $user;
return $user_id == $user->uid && user_access('view own quiz results') || user_access('view any quiz results');
}