From ed8d88435ead39f44b8f3b0f2224f48b8b0963a7 Mon Sep 17 00:00:00 2001
From: Kjartan Mannes <kjartan@2.no-reply.drupal.org>
Date: Sat, 19 Oct 2002 23:31:11 +0000
Subject: [PATCH] - fixing an access bug in import.module.

---
 modules/aggregator.module            | 2 +-
 modules/aggregator/aggregator.module | 2 +-
 modules/import.module                | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/aggregator.module b/modules/aggregator.module
index ec8669055378..364d6ccc2adb 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -57,7 +57,7 @@ function import_update() {
 function import_format_item($item, $feed = 0) {
   global $theme, $user;
 
-  if ($user->uid && user_access("post blogs")) {
+  if ($user->uid && user_access("post content")) {
     $output .= lm("<img src=\"". $theme->image("blog.gif") ."\" border=\"0\" width=\"12\" height=\"16\" alt=\"". t("Blog this item") ."\" />", array("mod" => "node", "op" => "add", "type" => "blog", "iid" => $item->iid), "", array("title" => t("Comment on this news item in your personal blog.")));
   }
 
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index ec8669055378..364d6ccc2adb 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -57,7 +57,7 @@ function import_update() {
 function import_format_item($item, $feed = 0) {
   global $theme, $user;
 
-  if ($user->uid && user_access("post blogs")) {
+  if ($user->uid && user_access("post content")) {
     $output .= lm("<img src=\"". $theme->image("blog.gif") ."\" border=\"0\" width=\"12\" height=\"16\" alt=\"". t("Blog this item") ."\" />", array("mod" => "node", "op" => "add", "type" => "blog", "iid" => $item->iid), "", array("title" => t("Comment on this news item in your personal blog.")));
   }
 
diff --git a/modules/import.module b/modules/import.module
index ec8669055378..364d6ccc2adb 100644
--- a/modules/import.module
+++ b/modules/import.module
@@ -57,7 +57,7 @@ function import_update() {
 function import_format_item($item, $feed = 0) {
   global $theme, $user;
 
-  if ($user->uid && user_access("post blogs")) {
+  if ($user->uid && user_access("post content")) {
     $output .= lm("<img src=\"". $theme->image("blog.gif") ."\" border=\"0\" width=\"12\" height=\"16\" alt=\"". t("Blog this item") ."\" />", array("mod" => "node", "op" => "add", "type" => "blog", "iid" => $item->iid), "", array("title" => t("Comment on this news item in your personal blog.")));
   }
 
-- 
GitLab