Permissions to unpublish/publish own posts only

sourabh.iitm - January 29, 2009 - 09:04
Project:Publish Content
Version:6.x-1.1-beta3
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:malaussene
Status:closed
Description

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?

#1

freakalis - February 5, 2009 - 08:13
Status:active» needs review

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

AttachmentSize
publishown.patch 1.57 KB

#2

sourabh.iitm - February 7, 2009 - 06:55

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

#3

cheuyungphat - February 11, 2009 - 21:29

Subscribing...

#4

cheuyungphat - February 12, 2009 - 06:56

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!

#5

grndlvl - February 23, 2009 - 14:37

Patch for 5.x-2.0

AttachmentSize
drupal-5-publishown.patch 1.76 KB

#6

malaussene - February 24, 2009 - 00:57
Assigned to:Anonymous» 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.

#7

malaussene - February 24, 2009 - 01:54

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

#8

cheuyungphat - February 25, 2009 - 00:10

Reposted as new issue.

#9

jjjames - February 24, 2009 - 11:21

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

#10

System Message - March 11, 2009 - 00:20
Status:fixed» closed

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

#11

sourabh.iitm - March 24, 2009 - 16:06
Version:6.x-1.0» 6.x-1.1-beta2
Category:feature request» bug report
Status:closed» 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?

#12

sourabh.iitm - March 24, 2009 - 16:30

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.

#13

venkiparam - April 2, 2009 - 14:13

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

#14

malaussene - April 5, 2009 - 03:13

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

#15

malaussene - April 5, 2009 - 03:21
Status:active» fixed

#16

sourabh.iitm - April 5, 2009 - 04:24
Version:6.x-1.1-beta2» 6.x-1.1-beta3

Tested & it is Working properly in new version.

#17

System Message - April 19, 2009 - 04:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.