summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-02-28 10:52:23 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-02-28 10:52:23 +0000
commit2410cf51c8777d173d9a05ec514b6d7678539922 (patch)
tree841a4a8ea5ea3b2e36cd0464f784eb3ed7d6d409
parent147cd225c9bb101bb0b7bd6f9f74d70c6a66af9f (diff)
downloadbrdo-2410cf51c8777d173d9a05ec514b6d7678539922.tar.gz
brdo-2410cf51c8777d173d9a05ec514b6d7678539922.tar.bz2
- changed the access on the menu.create link to post content.
http://www.drupal.org/node.php?id=91
-rw-r--r--modules/book.module2
-rw-r--r--modules/book/book.module2
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>";
}