function library_history_access in Library 6
1 string reference to 'library_history_access'
- library_menu in ./
library.module - Implementation of hook_menu().
File
- ./
library.module, line 113
Code
function library_history_access($node) {
if (user_access('view library history')) {
return TRUE;
}
elseif (user_access('view own library history')) {
global $user;
$user_patron = patron_load_by_uid($user->uid);
if (is_object($user_patron) && $user_patron->nid == $node->nid) {
return TRUE;
}
}
return FALSE;
}