Index: modr8.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/modr8/modr8.module,v retrieving revision 1.5.2.16 diff -u -r1.5.2.16 modr8.module --- modr8.module 21 Oct 2008 15:50:16 -0000 1.5.2.16 +++ modr8.module 4 Feb 2009 19:39:11 -0000 @@ -76,7 +76,7 @@ * Implementation of hook_perm(). */ function modr8_perm() { - return array('moderate content'); + return array('moderate content', 'skip moderation'); } /** @@ -203,7 +203,7 @@ $moderate_checkbox = array( '#type' => 'checkbox', '#title' => t('In moderation queue'), - '#default_value' => $form['#node']->moderate, + '#default_value' => (user_access('skip moderation')) ? FALSE : $form['#node']->moderate, '#weight' => 24, '#description' => t('This %type will be placed in moderation if the %moderate checkbox is selected.', array('%type' => node_get_types('name', $form['#node']), '%moderate' => t('In moderation queue'))), );