function content_access_node_page_access in Content Access 7
Same name and namespace in other branches
- 6 content_access.module \content_access_node_page_access()
Get access tab page for the viewed node.
1 string reference to 'content_access_node_page_access'
- content_access_menu in ./
content_access.module - Implements hook_menu().
File
- ./
content_access.module, line 95 - 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);
}