--- webfm.module.orig 2009-04-02 08:32:07.000000000 +0200 +++ webfm.module 2009-04-02 09:02:17.000000000 +0200 @@ -2260,7 +2260,11 @@ $node = node_load($dbfid['nid']); if (node_access('view', $node)) { $match = TRUE; - break; + // Modules might use their own method of node restriction, other than node_access. + drupal_alter('webfm_file_access', $match, $node, $f->$fid); + if ($match) { + break; + } } } }