From 42aa751d29b11d830c059870cf9f233ee4ffbc5a Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 19 Oct 2023 10:53:20 +0200 Subject: [PATCH] #12286 fix issue logout public link visual console --- .../operation/visual_console/public_view.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pandora_console/operation/visual_console/public_view.php b/pandora_console/operation/visual_console/public_view.php index 6fdac1b949..6fd892b76f 100644 --- a/pandora_console/operation/visual_console/public_view.php +++ b/pandora_console/operation/visual_console/public_view.php @@ -62,6 +62,12 @@ require_once 'include/functions_visual_map.php'; $hash = (string) get_parameter('hash'); +// For public link issue. +$force_instant_logout = true; +if (isset($config['id_user']) === true) { + $force_instant_logout = false; +} + // Check input hash. // DO NOT move it after of get parameter user id. if (User::validatePublicHash($hash) !== true) { @@ -316,3 +322,10 @@ $visualConsoleItems = VisualConsole::getItemsFromDB( } }); +