From fe9ef6317f812cfbbd69e9f0d123cc84aa58a5f6 Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Mon, 1 Mar 2021 10:29:56 -0400 Subject: [PATCH] PMCORE-2645 --- workflow/engine/classes/model/ListInbox.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/workflow/engine/classes/model/ListInbox.php b/workflow/engine/classes/model/ListInbox.php index 0c3a0aad3..f03db8141 100644 --- a/workflow/engine/classes/model/ListInbox.php +++ b/workflow/engine/classes/model/ListInbox.php @@ -426,11 +426,12 @@ class ListInbox extends BaseListInbox implements ListInterface case 'to_reassign': global $RBAC; $criteria->add(ListInboxPeer::APP_STATUS, 'TO_DO', Criteria::EQUAL); + // We will not consider without user threads + $criteria->add(ListInboxPeer::USR_UID, '', Criteria::NOT_EQUAL); $user = new BmUser(); $listProcess = $user->getProcessToReassign(['PM_REASSIGNCASE','PM_REASSIGNCASE_SUPERVISOR']); - - //If is not a supervisor and does not have the permission for view all cases we can not list cases - //If is a supervisor, we can list only his processes + // If is not a supervisor and does not have the permission for view all cases we can not list cases + // If is a supervisor, we can list only his processes if ( (empty($listProcess) && $RBAC->userCanAccess('PM_REASSIGNCASE') !== 1) || (is_array($listProcess) && count($listProcess) > 0)