Posted by joshstrange on August 16, 2010 at 6:11pm
I am working on a site for a client where users can create a node and then it has to get approved and once it is approved it is published. I have found a way to let the "Approve-ers" see the unpublished node and then publish it but now I am having problems locking the user who originally created the node out from editing the node.
To sum it up once a certain type of content (I use CCK) is published I want to lock it out from everyone except a certain role (Sort of a admin role). Is there a module that anyone can suggest using?
Thanks!
__
Edited by WorldFallz - nothing to do with module development, moved to appropriate forum.
Comments
=-=
check perms in administer -> permissions
ensure that the role (you don't want to be able to edit) can't
workflow.module and/or rules.module may be a better fit for creating the types of workflows you want
I use Rules currently and no
I use Rules currently and no roles have edit privileges on that content type but Drupal seems to give edit capabilities to the author/owner of a node. Also I want the node to be editable until it is published. I will take a look at workflow.
Thanks!
_
Not without the 'edit own' or 'administer nodes' permissions -- or there would be a stampede of bug reports.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
Well here is the problem, I
Well here is the problem, I want them to be able to edit there own until it has been published (It gets published via a Rule so I can add in PHP or a pre-defined function to remove said permission). The problem is the "edit own" permission is encompassing. It's an all or nithing thing. I wish I could just either remove "edit own" per node or just have a lock feature for a node so that no one can edit it but everyone can view it. Does this make sense? I don't /have/ to have a high featured super-nifty module. I know my php and I can write my own module for it I just wish there was a field in mysql I could change from a 1 to a 0 to lock it and then I could build a whole module around it so that anyone could easily use Rules or my API to lock a node
-Thank you for all the help so far, I am still browsing modules/documentation for an answer
I'm pretty sure that Workflow
I'm pretty sure that Workflow is the solution to your problem. I've used it for a contract negotiation workflow that did very similar things. In that case, each participant in the node's workflow could only make edits if the node was in specific stages of it's live.
-rg
You locked out the node author?
@Radiating Gnome - Were you locking out the node author or just another user?
_
There's several revision control modules in the downloads area ( ie revisioning, revision_moderation, content_moderation, etc) but yep, workflow should be able to do this no problem.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.