From f7e677025c993eb99ee0570cec28ec1c0e033270 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Tue, 23 Feb 2010 23:36:04 +0000 Subject: [PATCH] Only list importers with proper permissions. --- feeds.pages.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/feeds.pages.inc b/feeds.pages.inc index 022d7b9c..3d30f4f4 100644 --- a/feeds.pages.inc +++ b/feeds.pages.inc @@ -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']; -- GitLab