Commit 36c0e4d7 authored by Dries's avatar Dries

- Bugfix: display the correct author.  Patch by Nick.
parent 6fc8d944
......@@ -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.
......
......@@ -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.
......
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