function edit_limit_node_access in Edit Limit 6
Same name and namespace in other branches
- 7 edit_limit.module \edit_limit_node_access()
Helper function to determine if the user has permissions to use whatever grants node_access() grants to this user, as determined by the additional site membership checks.
1 string reference to 'edit_limit_node_access'
- edit_limit_menu_alter in ./edit_limit.module 
- Implement hook_menu_alter().
File
- ./edit_limit.module, line 55 
- edit_limit.module Primary module file for Edit Limit. This contains all the hooks needed to run the module.
Code
function edit_limit_node_access($op, $node, $account = NULL) {
  module_load_include('inc', 'node', 'node.pages');
  if (node_access($op, $node, $account)) {
    switch ($op) {
      case 'update':
        if (user_access('bypass edit limit')) {
          return TRUE;
        }
        return _edit_limit_user_acccess($node);
    }
  }
  return FALSE;
}