diff options
Diffstat (limited to 'modules/book.module')
-rw-r--r-- | modules/book.module | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/book.module b/modules/book.module index c0be8aa01..4150c406c 100644 --- a/modules/book.module +++ b/modules/book.module @@ -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) { |