summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-15 19:12:14 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-15 19:12:14 +0000
commit36c0e4d74569e7a12f80f849e30da04198c9b48c (patch)
tree629f42c851802e8001b2ff7351005ff992dd9025 /modules/book.module
parent6fc8d944d815dae937b93fdabd5857c260b7aa15 (diff)
downloadbrdo-36c0e4d74569e7a12f80f849e30da04198c9b48c.tar.gz
brdo-36c0e4d74569e7a12f80f849e30da04198c9b48c.tar.bz2
- Bugfix: display the correct author. Patch by Nick.
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book.module b/modules/book.module
index f61d15d55..a53621846 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -124,7 +124,7 @@ function book_load($node) {
$book = db_fetch_object(db_query("SELECT format, parent, weight, log FROM {book} WHERE nid = %d", $node->nid));
- if (!user_access("administer nodes")) {
+ if (arg(1) == 'edit' && !user_access("administer nodes")) {
/*
** If a user is about to update a book page, we overload some
** fields to reflect the changes.