summaryrefslogtreecommitdiff
path: root/modules/book/book.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/book/book.module')
-rw-r--r--modules/book/book.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/book/book.module b/modules/book/book.module
index 6900e52ca..5153ee9b2 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -66,8 +66,10 @@ function book_link($type, $node = 0, $main = 0) {
$links[] = l(t("create book page"), "node/add/book", array("title" => t("Add a new book page.")));
}
- if ($type == "node" && $node->type == "book" && book_access("update", $node)) {
- $links[] = l(t("edit this page"), "node/edit/$node->nid", array("title" => t("Suggest an update for this book page.")));
+ if ($type == "node" && $node->type == "book") {
+ if (book_access("update", $node)) {
+ $links[] = l(t("edit this page"), "node/edit/$node->nid", array("title" => t("Suggest an update for this book page.")));
+ }
$links[] = l(t("printer-friendly version"), "book/print/$node->nid", array("title" => t("Show a printer-friendly version of this book page and its sub-pages.")));
}