Commit 01e9b5a0 authored by Dries's avatar Dries

- Fixed 5218: book page "administer" removes original author.
parent 59925ef9
......@@ -124,13 +124,10 @@ function book_load($node) {
$book = db_fetch_object(db_query("SELECT format, parent, weight, log FROM {book} WHERE nid = %d", $node->nid));
if (strstr(request_uri(), "node/edit")) {
if (!user_access("administer nodes")) {
/*
** If a user is about to update a book page, we overload some
** fields to reflect the changes. We use the request URI to
** dectect this as we don't want to interfer with updating a
** book page through the admin pages.
** fields to reflect the changes.
*/
if ($user->uid) {
......
......@@ -124,13 +124,10 @@ function book_load($node) {
$book = db_fetch_object(db_query("SELECT format, parent, weight, log FROM {book} WHERE nid = %d", $node->nid));
if (strstr(request_uri(), "node/edit")) {
if (!user_access("administer nodes")) {
/*
** If a user is about to update a book page, we overload some
** fields to reflect the changes. We use the request URI to
** dectect this as we don't want to interfer with updating a
** book page through the admin pages.
** fields to reflect the changes.
*/
if ($user->uid) {
......
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