refactor(用户组权限): 超级管理员权限问题
This commit is contained in:
parent
1dd3b2676c
commit
e9816cbd43
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue