You are here

function _feedapi_op_access in FeedAPI 6

2 calls to _feedapi_op_access()
feedapi_handler_field_node_link_purge::render in views/handlers/feedapi_handler_field_node_link_purge.inc
feedapi_handler_field_node_link_refresh::render in views/handlers/feedapi_handler_field_node_link_refresh.inc
1 string reference to '_feedapi_op_access'
feedapi_menu in ./feedapi.module
Implementation of hook_menu().

File

./feedapi.module, line 110
Handle the submodules (for feed and item processing) Provide a basic management of feeds

Code

function _feedapi_op_access($node) {
  if (!feedapi_enabled_type($node->type)) {
    return FALSE;
  }
  global $user;
  $own_feed = $node->uid == $user->uid && user_access('edit own ' . $node->type . ' content') ? TRUE : FALSE;
  return user_access('administer feedapi') || $own_feed;
}