=== modified file 'modules/system/system.admin.inc'
--- modules/system/system.admin.inc	2007-09-14 12:16:55 +0000
+++ modules/system/system.admin.inc	2007-09-23 22:25:57 +0000
@@ -1256,6 +1256,7 @@ function system_performance_settings() {
  * @see system_settings_form().
  */
 function system_file_system_settings() {
+  $settings = file_get_contents(conf_path() .'/settings.php');
 
   $form['file_directory_path'] = array(
     '#type' => 'textfield',
@@ -1264,6 +1265,7 @@ function system_file_system_settings() {
     '#maxlength' => 255,
     '#description' => t('A file system path where the files will be stored. This directory has to exist and be writable by Drupal. If the download method is set to public this directory has to be relative to the Drupal installation directory, and be accessible over the web. When download method is set to private this directory should not be accessible over the web. Changing this location after the site has been in use will cause problems so only change this setting on an existing site if you know what you are doing.'),
     '#after_build' => array('system_check_directory'),
+    '#access' => !strpos($settings, 'file_directory_path'),
   );
 
   $form['file_directory_temp'] = array(
@@ -1273,6 +1275,7 @@ function system_file_system_settings() {
     '#maxlength' => 255,
     '#description' => t('Location where uploaded files will be kept during previews. Relative paths will be resolved relative to the Drupal installation directory.'),
     '#after_build' => array('system_check_directory'),
+    '#access' => !strpos($settings, 'file_directory_temp'),
   );
 
   $form['file_downloads'] = array(

