Commit ed8d8843 authored by Kjartan's avatar Kjartan
Browse files

- fixing an access bug in import.module.

parent 2e43215b
...@@ -57,7 +57,7 @@ function import_update() { ...@@ -57,7 +57,7 @@ function import_update() {
function import_format_item($item, $feed = 0) { function import_format_item($item, $feed = 0) {
global $theme, $user; 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."))); $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.")));
} }
......
...@@ -57,7 +57,7 @@ function import_update() { ...@@ -57,7 +57,7 @@ function import_update() {
function import_format_item($item, $feed = 0) { function import_format_item($item, $feed = 0) {
global $theme, $user; 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."))); $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.")));
} }
......
...@@ -57,7 +57,7 @@ function import_update() { ...@@ -57,7 +57,7 @@ function import_update() {
function import_format_item($item, $feed = 0) { function import_format_item($item, $feed = 0) {
global $theme, $user; 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."))); $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.")));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment