function library_history_user_access in Library 6.2
1 string reference to 'library_history_user_access'
- library_menu in ./
library.module - Implementation of hook_menu().
File
- ./
library.module, line 103
Code
function library_history_user_access($patron_user) {
global $user;
if (user_access('view library history')) {
return TRUE;
}
elseif (user_access('view own library history', $user)) {
if ($patron_user->uid == $user->uid) {
return TRUE;
}
}
return FALSE;
}