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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

FileSize
882 bytes

i had the conditions reversed. thanks jonbob.

sulleleven’s picture

i noticed this a while back... thnx for the patch.
would a similar reason apply to the project modules issue nodes?

moshe weitzman’s picture

FileSize
1.37 KB

this 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

Anonymous’s picture

+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.

Dries’s picture

Committed to HEAD.

Anonymous’s picture