function protected_node_webfm_file_access_alter in Protected Node 6
@brief WebFM support.
Check webfm file access. In this case, we just check whether the node is protected for the current user.
@param[out] $access Variable whether the access result is saved. @param[in] $node Node being checked. @param[in] $fid File being checked.
File
- ./
protected_node.module, line 1009
Code
function protected_node_webfm_file_access_alter(&$access, $node, $fid) {
$access = !protected_node_is_locked($node->nid, 'view');
}