fix: 调整 workspace 新增/修改接口 visibility 属性校验规则

This commit is contained in:
shizhendong
2024-10-21 16:05:16 +08:00
parent 63fd0ded17
commit eb5396437d

View File

@@ -96,7 +96,7 @@ public class WorkspaceServiceImpl extends ServiceImpl<WorkspaceDao, WorkspaceEnt
private void validateWorkspaceInfo(WorkspaceEntity workspace, boolean isUpdate) {
if (!T.StrUtil.equalsIgnoreCase(workspace.getVisibility(), "private")) {
if (!T.StrUtil.equalsAnyIgnoreCase(workspace.getVisibility(), "private", "public")) {
throw new ASWException(RCode.WORKSPACE_VISIBILITY_ERROR);
}