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

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

View File

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