Commit 2410cf51 authored by Kjartan's avatar Kjartan

- changed the access on the menu.create link to post content.

  http://www.drupal.org/node.php?id=91
parent 147cd225
......@@ -95,7 +95,7 @@ function book_link($type, $node = 0, $main = 0) {
$links[] = "<a href=\"module.php?mod=book\" title=\"". t("Read and contribute to the collaborative books.") ."\">". t("collaborative book") ."</a>";
}
if ($type == "menu.create" && user_access("administer nodes")) {
if ($type == "menu.create" && user_access("post content")) {
$links[] = "<a href=\"module.php?mod=node&op=add&type=book\" title=\"". t("Add a new book page.") ."\">". t("create book page") ."</a>";
}
......
......@@ -95,7 +95,7 @@ function book_link($type, $node = 0, $main = 0) {
$links[] = "<a href=\"module.php?mod=book\" title=\"". t("Read and contribute to the collaborative books.") ."\">". t("collaborative book") ."</a>";
}
if ($type == "menu.create" && user_access("administer nodes")) {
if ($type == "menu.create" && user_access("post content")) {
$links[] = "<a href=\"module.php?mod=node&op=add&type=book\" title=\"". t("Add a new book page.") ."\">". t("create book page") ."</a>";
}
......
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