I have a content type with "Enable publishcontent" disabled.
In my view I added the publish-content link, and it shows the 'Unpublish'-link for nodes of this type. When the node is unpublished, there is no 'Publish'-link.

A little if-statement seems missing in the "publishcontent_unpublish_access" function.

CommentFileSizeAuthor
#2 2733239-1.patch823 bytesSpadXIII
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SpadXIII created an issue. See original summary.

SpadXIII’s picture

Status: Active » Needs review
FileSize
823 bytes

A little patch that adds the same check in 'publishcontent_unpublish_access'-function as in the 'publishcontent_publish_access'-function