From 62cc6218b434de172bbce6316bc43728ad84b6d4 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Fri, 17 Sep 2010 22:30:10 +0000 Subject: [PATCH] Limit access to filter formats. --- plugins/FeedsNodeProcessor.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/FeedsNodeProcessor.inc b/plugins/FeedsNodeProcessor.inc index 49199dc1..a6de53cb 100644 --- a/plugins/FeedsNodeProcessor.inc +++ b/plugins/FeedsNodeProcessor.inc @@ -171,7 +171,8 @@ class FeedsNodeProcessor extends FeedsProcessor { '#default_value' => $this->config['content_type'], ); $format_options = array(FEEDS_NODE_DEFAULT_FORMAT => t('Default format')); - $formats = filter_formats(); + global $user; + $formats = filter_formats($user); foreach ($formats as $format) { $format_options[$format->format] = check_plain($format->name); } -- GitLab