diff options
-rw-r--r-- | modules/book.module | 2 | ||||
-rw-r--r-- | modules/book/book.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/book.module b/modules/book.module index 76e7fd3d5..f49afab15 100644 --- a/modules/book.module +++ b/modules/book.module @@ -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>"; } diff --git a/modules/book/book.module b/modules/book/book.module index 76e7fd3d5..f49afab15 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -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>"; } |