refactor(用户组权限): 超级管理员权限问题

This commit is contained in:
shiziyuan9527 2023-01-29 18:23:43 +08:00 committed by lyh
parent 027b7bed55
commit daaba7b49d
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ public class BaseCheckPermissionService {
}
public void checkProjectOwner(String projectId) {
if (SessionUtils.getUserId() != null && baseUserService.isSuperUser(SessionUtils.getUserId())) {
return;
}
Set<String> projectIds = getUserRelatedProjectIds();
if (CollectionUtils.isEmpty(projectIds)) {
return;