Is there a way I can allow a certain role to sticky their nodes without giving them the 'Administer nodes' permission?

The thing is that I created a private node type with the content_access module and if I grant someone the 'Administer nodes' permission, they can see the private nodes. The role in question manages the frontpage news so they must be able to sticky their posts.

I am aware that the permission system is being reworked but I kinda need a solution for now. Coming from Postnuke/zikula, Drupal is a bliss except for the permission system. :(

Comments

mm167’s picture

I believe u can do like this

1. create a new content type "front_page_news"
2. create a new user role "front_page_news_editor"
3. in permission, allow role front_page_news_editor to "edit any front_page_news content"

Nda’s picture

Thanks for your reply mm167.

That is how I have it configured. Now they can add, edit and remove nodes. However, they still can't sticky their posts unless I give them the 'Administer nodes' permission.

WorldFallz’s picture

You're correct, 'sticky' is associated with the administer nodes permission. However, should be able to simulate this functionality with a combination of the views and flag modules.

hugafish’s picture

I need this functionality too. I don't want to have to mess with new views etc at this point. I have everything pretty much layed out the way I like for now. I was wondering if there was a way to use rules to do this based on role type and node title key words? This way I could have multiple record label companies post their news letters and they would automatically be stickied for x amount of time. The record companies would just make sure that they typed in the exact required titles to their posts. This way not all of their posts have to be stickied, just the newletter posts and no worries about being admin and manually configuring each post to be stickied. Could this be done using rules or is this a php coding solution requirement?

Thanks

Eric

Clément’s picture

Hello,

I have the same problem, I give permission for certain users only. Is there something now to fix this? Thank you.

odisei’s picture

+1

Alessandraaa’s picture

I used this module: http://drupal.org/project/override_node_options
It worked perfectly fine! :)

ardnet’s picture

Hi,
But I just want ONLY Sticky option, not the Edit link as well, how do I do that?
My case is, I used Views Bulk Operations that allow user ONLY make content Sticky or Un-sticky for content type Story,
but in order to do this I need to activate "edit any story content" in Permissions, which give user to access Edit page of this node type.

How to make ONLY Sticky option without activating that "edit story content" in Permissions?

Thanks in advanced.

WorldFallz’s picture

You could use the flag module for that and either create a custom action for the flag to toggle the sticky option, use a view that sorts based on the sticky flag instead of the actual sticky option, or use the rules module to toggle the sticky option when the node is flagged.

Anonymous’s picture

Sorry for reviving this old thread. I can confirm the easiest approach is to create three custom actions for a flag (global on each node - the nodes are either sticky or not). It will save you the trouble of redefining views (or the trouble of modifying advanced forums in my case).
New node is saved-> Condition node saved is flagged -> Action make node saved sticky
Node is updated -> Condition node updated is flagged -> Action make node saved sticky
Node is updated -> Condition node updated is not flagged -> Action make node saved unsticky

To emulate the functionality you see normally, just enable the flag on the node edit form. Make sure only the roles you need have permission to set the flag.