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.

Comments

somebodysysop’s picture

StatusFileSize
new11.45 KB

Attached 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.

pvasener’s picture

I 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 :)

somebodysysop’s picture

Status: Needs review » Fixed

Thanks you.

Status: Fixed » Closed (fixed)

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