We need to add a new permission to view any unpublished nodes (skip bundle check).

CommentFileSizeAuthor
#9 View any permission.png59.65 KBthakurnishant_06
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

AstonVictor created an issue. See original summary.

chetan 11 made their first commit to this issue’s fork.

chetan 11’s picture

Status: Active » Needs review

Hi,
I have added "permission to view any unpublished nodes", please check the raised solution in MR.
Thanks.

astonvictor’s picture

Status: Needs review » Active

Hi @chetan 11,

I closed your MR because your code is incorrect:
- you removed all other permissions per bundle that is the main feature of the module;
- you don't follow code standards;
- it should be based on node grants (base task to add grants - https://www.drupal.org/project/unpublished_node_permissions/issues/3401801)

Since the task is assigned to me, I'll take care of the issue.
thanks

astonvictor’s picture

Assigned: astonvictor » Unassigned
Status: Active » Needs review

Created a new MR.

Added a new view unpublished content permission to access any unpublished content.
FYI didn't add view ANY unpublished content permission in case someone creates a new bundle with 'ANY' name.

thakurnishant_06’s picture

StatusFileSize
new59.65 KB

Hi @AstonVictor,
Hope you are doing well ,
I've tested the MR8 changes, and the new permission, 'view any unpublished content,' has been successfully added. I've attached a screenshot for your reference.
RTBC +1

Thanks for the work .

thakurnishant_06’s picture

Status: Needs review » Reviewed & tested by the community

astonvictor’s picture

Status: Reviewed & tested by the community » Fixed

hanks for the review.

Merged and will be released in the next version.

Status: Fixed » Closed (fixed)

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