diff --git webfm.module webfm.module
index 7a6028d..9b3f542 100755
--- webfm.module
+++ webfm.module
@@ -2165,7 +2165,7 @@ class webfm_build_dir_list {
       $perm_flag = FALSE;
       if ($perm == WEBFM_ADMIN) {
         // WEBFM_ADMIN always has access
-        if (webfm_check_path($path, $webfm_root_path)) {
+        if (webfm_check_path($path, $root)) {
           $perm_flag = TRUE;
         }
       }
