function content_access_node_page_access in Content Access 6
Same name and namespace in other branches
- 7 content_access.module \content_access_node_page_access()
1 string reference to 'content_access_node_page_access'
- content_access_menu in ./
content_access.module - Implementation of hook_menu().
File
- ./
content_access.module, line 58 - Content access module file.
Code
function content_access_node_page_access($node) {
global $user;
return content_access_get_settings('per_node', $node->type) && user_access('grant content access') || content_access_get_settings('per_node', $node->type) && (user_access('grant own content access') && $user->uid == $node->uid);
}