Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
node system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2006 at 15:42 UTC
Updated:
24 Nov 2006 at 18:03 UTC
OK, the objective is to allow more people to moderate nodes without giving them the keys to the kingdom. This has come out of Proposal: How to get more people involved with documentation.
At the time of writing there are 180 edits in the moderation queue. So we need to start finding a way to take the burden off existing site admins.
I've started by taking pwolanin's patch at #18 and merging it with latest CVS node.module and pushing out this patch. I have not tested it yet. I plan to be testing this with an upcoming project with book module.
| Comment | File | Size | Author |
|---|---|---|---|
| moderate_nodes.patch | 3.7 KB | sime |
Comments
Comment #1
pwolanin commentedOk, I'd be happy to work on this a little more either as a hack for Drupal.org, or as a potential new feature.
I have not been following closely any discussions regarding possible reorganization of the permissioning system in 4.8- if there's somewthing I need to know, please point me in the right direction.
Comment #2
simeFrom what I can tell, we need to focus on it being a new feature, since drupal.org is fairly stock. If there was going to be a custom fix to drupal.org (which is possible but unlikely), the feature will need to be present in 4.8 for when Drupal.org is upgraded.
I simply don't know whether this issue should tie in with Save revision as draft.
Comment #3
pwolanin commentedLooking at the code a little more, it seems like it might make sense to try to quickly roll this functionality into a separate module that could be used now, rather than chasing the HEAD version of node.module. Would such a module potentially be used on Drupal.org?
Comment #4
dfserra commentedNodes moderation is very interesting.
I would like a little different.
My necessities are:
Some people can publish nodes without moderation, and others with moderation.;
There are nodes moderators;
The configurations to be able to be different for nodetype;
Everything this without the need of the permission “administer nodes”.
For such I think that such as in the comments, would be enough, to add two new permissions for each nodetype:
Create nodes with approval;
Node moderator.
I think that this functionality is very important.
Comment #5
pwolanin commentedOk, trying to learn to use CVS properly. I added a draft module hacked from the body of node.module at:
http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/pwolanin/cont...
I haven't actually tested it yet, but any intial review welcome.
Comment #6
pwolanin commentedcode seems to be working reasonably now, and submitted as a project:
http://drupal.org/project/content_moderator
Comment #7
simeWe'll need some drupal admins to review this, so to make that process smoother, can you:
- put linefeeds in README.txt
- change the description of your module as "hacked out of node.module"
I am also wondering, how does this module work with existing access modules? I am not an expert in this area, but I understand that something like na_arbitrator is required to help multiple "node access" modules work together. Does this module fall into that category?
Comment #8
pwolanin commentedI would be happy to revise the description if that's too colorful - take a look at the version now.
The only node-access interfacing is done by calling sql_rewrite when generating lists of nodes, and by calling node_access('update', $node) when determining whether to show an 'edit' link. Since these are core methods, I'd think it should be agnostic as far as any actual access control modules in use.
Comment #9
simeGreat, I'll try and test this soon.
Comment #10
drummComment #11
dfserra commentedpwolanin
The module content_moderator is an advance. But it doesn’t satisfy my needs in #4.
I think this feature is important include in core.
Comment #12
pwolanin commentedFrom my understanding of what's happening for 4.8, all use of the moderation flag will be removed from core.
So, you're welcome to use/change the module I contributed as far as it suits you needs, but i don't think that a "moderate" permission looks likely to make it into core for 4.8 unless it affects the "status" flag instead of the "moderate" flag.
Comment #13
sepeck commentedjust confirmend with drumm that the bit this relies on will not be in 4.8.
Comment #14
simeThanks Steven.
I had my suspicion that might be the case.
Comment #15
pwolanin commentedI think the moderate bit itself will still be in the DB, but no core code will use it:
http://drupal.org/node/72343
Please correct me if I'm wrong, since I think that removing the bit from the schema would be a mistake.
Comment #16
pwolanin commented