From 3ad0b581372ac42c5e2ee90173879494c10dd7db Mon Sep 17 00:00:00 2001 From: bwcx_jzy Date: Tue, 2 Jan 2024 12:17:03 +0800 Subject: [PATCH] pre commit 2.11.0.3 --- CHANGELOG-BETA.md | 6 ++++++ .../org/dromara/jpom/service/h2db/BaseWorkspaceService.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-BETA.md b/CHANGELOG-BETA.md index 23b7c7383..6b9a2547f 100644 --- a/CHANGELOG-BETA.md +++ b/CHANGELOG-BETA.md @@ -1,5 +1,11 @@ # 🚀 版本日志 +### 2.11.0.3-beta (2024-01-02) + +### 🐞 解决BUG、优化功能 + +1. 【server】修复 没有对应的工作空间权限 + ### 2.11.0.2-beta (2024-01-02) ### 🐞 解决BUG、优化功能 diff --git a/modules/server/src/main/java/org/dromara/jpom/service/h2db/BaseWorkspaceService.java b/modules/server/src/main/java/org/dromara/jpom/service/h2db/BaseWorkspaceService.java index e30d27fa8..4df9caab2 100644 --- a/modules/server/src/main/java/org/dromara/jpom/service/h2db/BaseWorkspaceService.java +++ b/modules/server/src/main/java/org/dromara/jpom/service/h2db/BaseWorkspaceService.java @@ -263,7 +263,7 @@ public abstract class BaseWorkspaceService extends // 查询绑定的权限 UserBindWorkspaceService userBindWorkspaceService = SpringUtil.getBean(UserBindWorkspaceService.class); boolean exists = userBindWorkspaceService.exists(userModel, workspaceId); - if (exists) { + if (!exists) { throw new PermissionException("没有对应的工作空间权限"); } }