Skip to content

Commit 797d2f5

Browse files
author
Kristan Kenney
committed
Fix search scope when impersonating user
1 parent 8023d4f commit 797d2f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/search/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// Data
2424
$q = escapeshellarg($q);
2525

26-
if ($_SESSION['userContext'] === 'admin') {
26+
if (($_SESSION['userContext'] === 'admin') && (!isset($_SESSION['look']))) {
2727
exec (HESTIA_CMD . "v-search-object " .$q. " json", $output, $return_var);
2828
} else {
2929
exec (HESTIA_CMD . "v-search-user-object " .$user. " " .$q. " json", $output, $return_var);

0 commit comments

Comments
 (0)