Hi,
I am looking for normal user level permission to publish/unpublish his own posts only. Can this feature be made available in new versions?

CommentFileSizeAuthor
#5 drupal-5-publishown.patch1.76 KBgrndlvl
#1 publishown.patch1.57 KBfreakalis

Comments

freakalis’s picture

Status: Active » Needs review
StatusFileSize
new1.57 KB

I also need the publish own nodes permission. Here is a patch that implements that.

sourabh.iitm’s picture

I will test this tomorrow and will get back to you. Thanks for the update.

FWE’s picture

Subscribing...

FWE’s picture

Thank you for the patch! I tried this tonight and it works great - no issues so far.

However, with regard to Views integration - is there any way to tie the "node: publish link" option into the new permissions available with this excellent patch?

I have setup a table view whereby users can review/edit their own content with Node:delete/Node:edit links and am attempting to provide a Node:publish link. However, only users granted permissions for publishing/unpublishing "all" content typeX (vs. publishing "their own" content typeX) are able to view the link. If the user chooses to "Edit" the content type from the view - the publish link works great within the node edit page (using the tab menu option). I'm just trying to provide all edit/publish link options within the main view that I have setup.

Any suggestions would be greatly appreciated - thank you again and best regards!

grndlvl’s picture

StatusFileSize
new1.76 KB

Patch for 5.x-2.0

malaussene’s picture

Assigned: Unassigned » malaussene
Status: Needs review » Fixed

applied a variant of this patch to both publishcontent-5.x-2.* and publishcontent-6.x-1.*

It should appears soon in the respective development snapshots.

malaussene’s picture

cheuyungphat,

thanks or your feedback.

I tested the view in drupal 6 with the patch applied and it works fine with Views-6.x-2.3.
Have you tried to reset the views's cache?

They were a bug in publishcontent-5.x-2.0 concerning the view in drupal 5:
see #381338: Publish Link on views display
It is now fixed in the developer snapshot., that should be available soon.

if you still experience the issue, please open a new issue.

thanks

FWE’s picture

Reposted as new issue.

jjjames’s picture

This looks like just what I need. Look forward to trying it out.
thanks for the contribution!

Status: Fixed » Closed (fixed)

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

sourabh.iitm’s picture

Version: 6.x-1.0 » 6.x-1.1-beta2
Category: feature » bug
Status: Closed (fixed) » Active

I have tested the latest 6.x-1.1-beta 2 version and there is a small problem.

when i am giving authenticated users permission to publish own posts it is actually showing link for unpublishing the posts for other users too (for that particular content type). And the worse part is that they are able to unpublish a page for which they don't have permissions.

Any 1 else facing the same problem?

sourabh.iitm’s picture

I have an update:

Case 1 : When i am giving permission to "publish own __ content" then a user is able to publish/unpublish own __ content.

Case 2 : Problem arises when i am giving permission to "publish own __ content" and permission to "unpublish own __ content". In this case the user is able to unpublish any other users posts (of that particular content type!).

So since case 1 is my need so this is working fine for me. Although case 2 is still a bug.

venkiparam’s picture

I am facing an access problem too

I have disabled the permission to publish/unpublish own content, But when the node author logs in and opens the node, The Publish/Unpublish link is getting displayed as a tab. Kindly help

Thanks

malaussene’s picture

hi sourabh.iitm,

thanks for the feedback

it should be fixed with the version 6.x-1.1-beta3, and 5.x-2.1-beta2

let me know if it does not solve your issue

malaussene’s picture

Status: Active » Fixed
sourabh.iitm’s picture

Version: 6.x-1.1-beta2 » 6.x-1.1-beta3

Tested & it is Working properly in new version.

Status: Fixed » Closed (fixed)

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

ravenite@gmail.com’s picture