diff --git a/feeds.pages.inc b/feeds.pages.inc index 547737c15d2dfbf83d3ee117d3025d5f4a63c2f2..33310ecf682701394f49a0f28cd1830f73046eb0 100644 --- a/feeds.pages.inc +++ b/feeds.pages.inc @@ -22,10 +22,13 @@ function feeds_page() { $link = 'import/' . $importer->id; $title = $importer->config['name']; } - elseif (user_access('create ' . $importer->config['content_type'] . ' content')) { + elseif (node_access('create', $importer->config['content_type'])) { $link = 'node/add/' . str_replace('_', '-', $importer->config['content_type']); $title = node_type_get_name($importer->config['content_type']); } + else { + continue; + } $rows[] = array( l($title, $link), check_plain($importer->config['description']),