Hi,

thanks for this cool module.
I encountered a problem using it with forum:
The dropdown shows threads, to which users have no access because of their role. This results in "access denied" if they want to view such threads. So content is safe, but people know, the thread/data is there! This may rise evil thoughts or make users feel excluded.
Is is possible to filter the dropdownlist with (the) enabled access module(s), i.e. forum_access

thanks

Comments

danielb’s picture

Here is possibly the solution

find this line in the module

<?php

  return db_query_range($query, $args, 0, $num_options);

?>

right before it add this line:

<?php

$query = db_rewrite_sql(str_replace('autocomplete_node_finder_n', 'n', $query));

?>

Don't have time to check it now.

maulwuff’s picture

Status: Active » Reviewed & tested by the community

Hi,
thanks for your fast reply.
I modified the code accordingly and it works great.

Please add it to the next release.

danielb’s picture

Status: Reviewed & tested by the community » Fixed

thanks for trying it, I will commit!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.