Index: workflow_fields.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/workflow_fields/workflow_fields.module,v
retrieving revision 1.5.2.10
diff -u -p -r1.5.2.10 workflow_fields.module
--- workflow_fields.module	9 Mar 2008 20:03:45 -0000	1.5.2.10
+++ workflow_fields.module	25 Mar 2008 17:14:04 -0000
@@ -208,6 +208,11 @@ function workflow_fields_node_form_alter
           '#weight' => $weight,
         );
       }
+      if (!$visible || !$editable) {
+        if ($field['type'] == 'file') {
+          unset($form[$key .'-attach-url']);
+        }
+      }
     }
   }    
 }
