diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/BaseCheckPermissionService.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/BaseCheckPermissionService.java index fda13d7e3f..109b00f092 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/BaseCheckPermissionService.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/service/BaseCheckPermissionService.java @@ -78,6 +78,9 @@ public class BaseCheckPermissionService { } public void checkProjectOwner(String projectId) { + if (SessionUtils.getUserId() != null && baseUserService.isSuperUser(SessionUtils.getUserId())) { + return; + } Set projectIds = getUserRelatedProjectIds(); if (CollectionUtils.isEmpty(projectIds)) { return;