From 61e5b10227b50407e3c6ac494ffbd4385d1b59df Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Fri, 29 Mar 2024 15:00:39 +0200 Subject: [PATCH] Fix to switch to remove user --- authentic-lib.pl | 1 + 1 file changed, 1 insertion(+) 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);