Skip to content

Commit

Permalink
IVYPORTAL-17671 Adapt currentUserOrHisRolesAreInvolved API for Task
Browse files Browse the repository at this point in the history
- Adapt for LE
  • Loading branch information
mnhnam-axonivy committed Sep 18, 2024
1 parent 39be31c commit 130e353
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 130e353

Please sign in to comment.