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)