Skip to content

Commit

Permalink
[Bug-4102][admin]Bug fix for task lock strategy condition (#4103)
Browse files Browse the repository at this point in the history
  • Loading branch information
MactavishCui authored Dec 31, 2024
1 parent 66be4a1 commit 702280a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1101,10 +1101,10 @@ public List<TaskDTO> getUserTasks(Integer userId) {
private Boolean hasTaskOperatePermission(Integer firstLevelOwner, List<Integer> secondLevelOwners) {
boolean isFirstLevelOwner = firstLevelOwner != null && firstLevelOwner == StpUtil.getLoginIdAsInt();
if (TaskOwnerLockStrategyEnum.OWNER.equals(
SystemConfiguration.getInstances().getTaskOwnerLockStrategy())) {
SystemConfiguration.getInstances().getTaskOwnerLockStrategy().getValue())) {
return isFirstLevelOwner;
} else if (TaskOwnerLockStrategyEnum.OWNER_AND_MAINTAINER.equals(
SystemConfiguration.getInstances().getTaskOwnerLockStrategy())) {
SystemConfiguration.getInstances().getTaskOwnerLockStrategy().getValue())) {
return isFirstLevelOwner
|| (secondLevelOwners != null && secondLevelOwners.contains(StpUtil.getLoginIdAsInt()));
}
Expand Down

0 comments on commit 702280a

Please sign in to comment.