To prevent nodes in moderation to be viewable by URL, they have to be unpublished until the moderation is done. However, the moderation of unpublished nodes is currently impossible as clicking on the 'Moderate' tab leads to a denied access according to the following query:
$count_sql = db_rewrite_sql('SELECT COUNT(*) FROM {node} n WHERE n.status = 1 AND n.moderate = 1 AND n.nid = '.$nid);
So here is a patch to correct that behavior. Indeed, it's already been fixed in the modr8 module (http://drupal.org/node/107282) but hasn't be in og_user_roles.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ogur-337341.patch | 11.45 KB | somebodysysop |
| og_user_roles.module.patch | 1.13 KB | pvasener |
Comments
Comment #1
somebodysysop commentedAttached is cumulative patch with this fix. Would appreciate if you could verify that it works asap as I'd like to commit it and rest of changes to new release. Apply against clean (unpatched) download of OGUR 5.x-3.3.
Comment #2
pvasener commentedI can confirm that your cumulative patch fixes the problem I reported. I also did a few checkings concerning the rest of it, and I don't have any problem to report but that was a quick test :)
Comment #3
somebodysysop commentedThanks you.