Skip to content
Snippets Groups Projects
Commit f7e67702 authored by Alex Barth's avatar Alex Barth
Browse files

Only list importers with proper permissions.

parent 6ae99788
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,6 @@
/**
* Render a page of available feed configuration.
*
* @todo Respect permissions.
*/
function feeds_page() {
$rows = array();
......@@ -18,6 +16,9 @@ function feeds_page() {
if ($importer->disabled) {
continue;
}
if (!user_access('import '. $importer->id .' feeds')) {
continue;
}
if (empty($importer->config['content_type'])) {
$link = 'import/'. $importer->id;
$title = $importer->config['name'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment