Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Book pages slighty disobey the node_access system because they always return a value for book_access('update'). This simple patch causes us to use node_access when the user has a chance of being able to update the current page.
Comment | File | Size | Author |
---|---|---|---|
#3 | book_26.patch | 1.37 KB | moshe weitzman |
#1 | book_25.patch | 882 bytes | moshe weitzman |
tree.diff | 921 bytes | moshe weitzman | |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedi had the conditions reversed. thanks jonbob.
Comment #2
sulleleven CreditAttribution: sulleleven commentedi noticed this a while back... thnx for the patch.
would a similar reason apply to the project modules issue nodes?
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedthis version adds a 'revision pending' message as needed at bottom of the node view. the lack of this indicator confuses authors on drupal.org why they have no edit tab, and may remind recent editors why their edits are not showing up yet.
sorry for mixing two unrelated ideas in one patch. at least they affect the same single file
Comment #4
(not verified) CreditAttribution: commented+1... the node_access fix is much-needed and the revision pending indicator would certainly be helpful on drupal.org and other sites using the moderation system.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to HEAD.
Comment #6
(not verified) CreditAttribution: commented