Index: override_node_options.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/override_node_options/override_node_options.module,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 override_node_options.module
--- override_node_options.module	11 Jan 2009 13:34:58 -0000	1.2.2.1
+++ override_node_options.module	1 Apr 2009 01:14:00 -0000
@@ -164,31 +164,45 @@
           '#collapsed' => variable_get('override_node_options_pocollapsed', 1), '#weight' => 25);
     }
     if(user_access('override ' . $form['type']['#value'] . ' published option')){
-          $form['options']['override_publishing_status']   = array(
-          '#type' => 'checkbox',
+      $type = 'checkbox';
+    } else {
+      $type = 'hidden';
+    }
+    $form['options']['override_publishing_status']   = array(
+          '#type' => $type,
           '#title' => t('Published'),
           '#default_value' => $node->status);
-    }
     
     if(user_access('override ' . $form['type']['#value'] . ' promote to front page option')){
-          $form['options']['override_publishing_promote']  = array(
-          '#type' => 'checkbox',
+      $type = 'checkbox';
+    } else {
+      $type = 'hidden';
+    }
+    $form['options']['override_publishing_promote']  = array(
+          '#type' => $type,
           '#title' => t('Promoted to front page'),
           '#default_value' => $node->promote);
-    }
     
     if(user_access('override ' . $form['type']['#value'] . ' sticky option')){
-          $form['options']['override_publishing_sticky']   = array(
-          '#type' => 'checkbox', '#title' => t('Sticky at top of lists'),
+      $type = 'checkbox';
+    } else {
+      $type = 'hidden';
+    }
+    $form['options']['override_publishing_sticky']   = array(
+          '#type' => $type, 
+          '#title' => t('Sticky at top of lists'),
           '#default_value' => $node->sticky);
-    }
     
     if(user_access('override ' . $form['type']['#value'] . ' revision option')){
-          $form['options']['override_publishing_revision'] = array(
-          '#type' => 'checkbox',
+      $type = 'checkbox';
+    } else {
+      $type = 'hidden';
+    }
+    $form['options']['override_publishing_revision'] = array(
+          '#type' => $type,
           '#title' => t('Create new revision'),
           '#default_value' => $node->revision);
-    }
+    
     if(user_access('override ' . $form['type']['#value'] . ' authored by option') || user_access('override ' . $form['type']['#value'] . ' authored on option')){
     $form['author'] = array(
           '#type' => 'fieldset',
