fix: 调整 workspace 新增/修改接口 visibility 属性校验规则
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user