pre commit 2.11.0.3

This commit is contained in:
bwcx_jzy 2024-01-02 12:17:03 +08:00
parent ccd449893a
commit 3ad0b58137
No known key found for this signature in database
GPG Key ID: E187D6E9DDDE8C53
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,11 @@
# 🚀 版本日志 # 🚀 版本日志
### 2.11.0.3-beta (2024-01-02)
### 🐞 解决BUG、优化功能
1. 【server】修复 没有对应的工作空间权限
### 2.11.0.2-beta (2024-01-02) ### 2.11.0.2-beta (2024-01-02)
### 🐞 解决BUG、优化功能 ### 🐞 解决BUG、优化功能

View File

@ -263,7 +263,7 @@ public abstract class BaseWorkspaceService<T extends BaseWorkspaceModel> extends
// 查询绑定的权限 // 查询绑定的权限
UserBindWorkspaceService userBindWorkspaceService = SpringUtil.getBean(UserBindWorkspaceService.class); UserBindWorkspaceService userBindWorkspaceService = SpringUtil.getBean(UserBindWorkspaceService.class);
boolean exists = userBindWorkspaceService.exists(userModel, workspaceId); boolean exists = userBindWorkspaceService.exists(userModel, workspaceId);
if (exists) { if (!exists) {
throw new PermissionException("没有对应的工作空间权限"); throw new PermissionException("没有对应的工作空间权限");
} }
} }