We need to add a new permission to view any unpublished nodes (skip bundle check).
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | View any permission.png | 59.65 KB | thakurnishant_06 |
Issue fork unpublished_node_permissions-3402331
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:
- 3402331-unpublished-nodes
changes, plain diff MR !8
- 3402331-add-permission-to
changes, plain diff MR !7
Comments
Comment #4
chetan 11 commentedHi,
I have added "permission to view any unpublished nodes", please check the raised solution in MR.
Thanks.
Comment #6
astonvictor commentedHi @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
Comment #8
astonvictor commentedCreated a new MR.
Added a new
view unpublished contentpermission to access any unpublished content.FYI didn't add
view ANY unpublished contentpermission in case someone creates a new bundle with 'ANY' name.Comment #9
thakurnishant_06 commentedHi @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 .
Comment #10
thakurnishant_06 commentedComment #12
astonvictor commentedhanks for the review.
Merged and will be released in the next version.