function _feedapi_op_access in FeedAPI 6
2 calls to _feedapi_op_access()
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;
}