From 130e353a062172606b66eca92a8b83afed86c813 Mon Sep 17 00:00:00 2001 From: mnhnam-axonivy Date: Wed, 18 Sep 2024 09:53:47 +0700 Subject: [PATCH] IVYPORTAL-17671 Adapt currentUserOrHisRolesAreInvolved API for Task - Adapt for LE --- .../addon/portalkit/ivydata/service/impl/TaskService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/AxonIvyPortal/portal/src/ch/ivy/addon/portalkit/ivydata/service/impl/TaskService.java b/AxonIvyPortal/portal/src/ch/ivy/addon/portalkit/ivydata/service/impl/TaskService.java index 4f628f95901..686db44a46b 100644 --- a/AxonIvyPortal/portal/src/ch/ivy/addon/portalkit/ivydata/service/impl/TaskService.java +++ b/AxonIvyPortal/portal/src/ch/ivy/addon/portalkit/ivydata/service/impl/TaskService.java @@ -262,11 +262,7 @@ private TaskQuery extendQueryWithUserHasPermissionToSee(TaskSearchCriteria crite } protected TaskQuery queryInvolvedTasks() { - FilterLink currentUserIsInvolved = TaskQuery.create().where().or().currentUserIsInvolved(); - IUser user = Ivy.session().getSessionUser(); - for (IRole role : user.getRoles()) { - currentUserIsInvolved.where().or().roleIsInvolved(role); - } + FilterLink currentUserIsInvolved = TaskQuery.create().where().or().currentUserOrHisRolesAreInvolved(); return currentUserIsInvolved; }