Index: default_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/default_filter/default_filter.module,v
retrieving revision 1.9
diff -u -r1.9 default_filter.module
--- default_filter.module	3 Sep 2007 01:21:34 -0000	1.9
+++ default_filter.module	12 Apr 2008 10:45:42 -0000
@@ -267,7 +267,7 @@
 
   //Note the CONCAT function. This assures that we don't let users who 
   //belong to some role access filters that belong to some other role.
-  //$format = db_result(db_query('SELECT format_id FROM {default_filters} WHERE CONCAT(format_id, ".", role_id) IN ("' . join('","', $eligible) . '") AND role_id IN ("' . join('","', $roles) . '") AND node_type = "%s" ORDER BY weight ASC LIMIT 1', $type));
-  $format = db_result(db_query('SELECT format_id FROM {default_filters} WHERE CONCAT(format_id, ".", role_id) IN ("' . join('","', $eligible) . '") AND node_type = "%s" ORDER BY weight ASC LIMIT 1', $type));
+  $format = db_result(db_query('SELECT format_id FROM {default_filters} WHERE CONCAT(format_id, ".", role_id) IN ("' . join('","', $eligible) . '") AND role_id IN ("' . join('","', $roles) . '") AND node_type = "%s" ORDER BY weight ASC LIMIT 1', $type));
+  //$format = db_result(db_query('SELECT format_id FROM {default_filters} WHERE CONCAT(format_id, ".", role_id) IN ("' . join('","', $eligible) . '") AND node_type = "%s" ORDER BY weight ASC LIMIT 1', $type));
   return $format;
 }
