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

Comments

SpadXIII created an issue. See original summary.

spadxiii’s picture

Status: Active » Needs review
StatusFileSize
new823 bytes

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

astonvictor’s picture

Status: Needs review » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.