Browse Source

[DS-7896][fix] Fixed the problem of duplicating project names when authorizing projects (#8453)

This closes #7896
3.0.0/version-upgrade
Sunny Lei 3 years ago committed by GitHub
parent
commit
2aed250ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java

4
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java

@ -566,9 +566,9 @@ public class UsersServiceImpl extends BaseServiceImpl implements UsersService {
return result; return result;
} }
//if the selected projectIds are empty, delete all items associated with the user
if (check(result, StringUtils.isEmpty(projectIds), Status.SUCCESS)) {
projectUserMapper.deleteProjectRelation(0, userId); projectUserMapper.deleteProjectRelation(0, userId);
if (check(result, StringUtils.isEmpty(projectIds), Status.SUCCESS)) {
return result; return result;
} }

Loading…
Cancel
Save