diff --git a/src/backend/auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/service/local/PermissionServiceImpl.kt b/src/backend/auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/service/local/PermissionServiceImpl.kt index c49cf34e2e..7bd9157412 100644 --- a/src/backend/auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/service/local/PermissionServiceImpl.kt +++ b/src/backend/auth/biz-auth/src/main/kotlin/com/tencent/bkrepo/auth/service/local/PermissionServiceImpl.kt @@ -403,9 +403,7 @@ open class PermissionServiceImpl constructor( } override fun listNoPermissionPath(userId: String, projectId: String, repoName: String): List { - val user = userRepository.findFirstByUserId(userId) ?: run { - throw ErrorCodeException(AuthMessageCode.AUTH_USER_NOT_EXIST) - } + val user = userRepository.findFirstByUserId(userId) ?: return emptyList() if (user.admin || isUserLocalAdmin(userId) || isUserLocalProjectAdmin(userId, projectId)) { return emptyList()