In content_lock_node_view(), there is a check pending locks for the current user viewing the node via content_lock_warn_pending_locks(). This should only be run if the user has access to lock content.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

recrit’s picture

the attached patch add an access check before calling content_lock_warn_pending_locks.

recrit’s picture

Status: Active » Needs review
pandaski’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
pandaski’s picture

Status: Needs review » Needs work