The use of $node->type in line 52 is not compatible with the string returned by node_get_types() in line 16.

So one function returns 'preview blog entry content' and the other returns 'preview blog content'

Comments

agentrickard’s picture

Line 52 should be:

  return user_access('preview '.strtolower(node_get_types('name', $node)).' content');
agentrickard’s picture

Status: Active » Needs review
chrisyates’s picture

Status: Needs review » Fixed

Fixed by 6.x-1.1 release with your patch. Thanks Ken!

agentrickard’s picture

Status: Fixed » Needs review

Sorry, there was a bug in the patch. Missing a semicolon at line 63.

agentrickard’s picture

Version: 6.x-1.0 » 6.x-1.1
chrisyates’s picture

Status: Needs review » Fixed

Drat. Fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.