diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-14 22:17:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-14 22:17:45 +0000 |
commit | 01e9b5a0f01e88e3c804cdef64676eebed56520b (patch) | |
tree | 28f5f666783438f68f136f8ed7a24403dc21e1cd /modules/book.module | |
parent | 59925ef983fc1cc0c21b631c65d5f432f7b1b77e (diff) | |
download | brdo-01e9b5a0f01e88e3c804cdef64676eebed56520b.tar.gz brdo-01e9b5a0f01e88e3c804cdef64676eebed56520b.tar.bz2 |
- Fixed 5218: book page "administer" removes original author.
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) { |