Skip to content

Commit

Permalink
Merge pull request #1055 from axonivy-market/bug/IVYPORTAL-17671-Adap…
Browse files Browse the repository at this point in the history
…t-currentUserOrHisRolesAreInvolved-API-for-Task-LE

IVYPORTAL-17671 Adapt currentUserOrHisRolesAreInvolved API for Task
  • Loading branch information
mnhnam-axonivy authored Sep 19, 2024
2 parents 403da82 + 130e353 commit 882d2d5
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 882d2d5

Please sign in to comment.