From b83e6888dd5f4c6a74116cf54e8030f0f6ff2f19 Mon Sep 17 00:00:00 2001 From: "Paula.Quispe" Date: Thu, 24 Mar 2022 12:36:01 -0400 Subject: [PATCH] PMCORE-3698 --- workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php index b5cdc13ba..c5e25cdf9 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/WebEntry.php @@ -9,6 +9,7 @@ use Illuminate\Support\Facades\DB; use ProcessMaker\Core\System; use ProcessMaker\Model\Application; use Publisher; +use RBAC; use ResultSet; use WebEntryPeer; @@ -1101,7 +1102,7 @@ class WebEntry */ public function isWebEntryOne($weUid) { - if (!empty($_SESSION['USER_LOGGED']) && empty($_SESSION['__WEBENTRYCONTINUE__'])) { + if (!empty($_SESSION['USER_LOGGED']) && empty($_SESSION['__WEBENTRYCONTINUE__']) && !RBAC::isGuestUserUid($_SESSION['USER_LOGGED'])) { global $G_PUBLISH; $G_PUBLISH = new Publisher(); $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/checkContinueOrCloseSession', '', [], SYS_URI . 'login/checkContinueOrCloseSession');