diff --git a/authentic-lib.pl b/authentic-lib.pl index 53836d77c..c70851ae5 100644 --- a/authentic-lib.pl +++ b/authentic-lib.pl @@ -1967,6 +1967,7 @@ sub get_xhr_request flush_file_lines($file); print convert_to_json($history); } elsif ($in{'xhr-get_autocompletes'} eq '1') { + switch_to_remote_user_safe(); my @data = get_autocomplete_shell($in{'xhr-get_autocomplete_type'}, $in{'xhr-get_autocomplete_string'}); print convert_to_json(\@data);