[Improvement-12658][Permission] Improve the readability of setPerm() in grantProjectbyCode() (#12660)

This commit is contained in:
rickchengx 2022-11-03 09:29:04 +08:00 committed by GitHub
parent 7cdb926a5f
commit c69376e74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -722,7 +722,7 @@ public class UsersServiceImpl extends BaseServiceImpl implements UsersService {
projectUser = new ProjectUser();
projectUser.setUserId(userId);
projectUser.setProjectId(project.getId());
projectUser.setPerm(7);
projectUser.setPerm(Constants.AUTHORIZE_WRITABLE_PERM);
projectUser.setCreateTime(today);
projectUser.setUpdateTime(today);
this.projectUserMapper.insert(projectUser);