Skip to content

Commit

Permalink
[DS-7896][fix] Fixed the problem of duplicating project names when au…
Browse files Browse the repository at this point in the history
…thorizing projects (#8453)

This closes #7896
  • Loading branch information
Lucaszlei committed Mar 10, 2022
1 parent bb1ba96 commit 2aed250
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,9 @@ public Map<String, Object> grantProject(User loginUser, int userId, String proje
return result;
}

//if the selected projectIds are empty, delete all items associated with the user
projectUserMapper.deleteProjectRelation(0, userId);

if (check(result, StringUtils.isEmpty(projectIds), Status.SUCCESS)) {
projectUserMapper.deleteProjectRelation(0, userId);
return result;
}

Expand Down

0 comments on commit 2aed250

Please sign in to comment.