diff --git a/backend/apps/system/api/workspace.py b/backend/apps/system/api/workspace.py index 6c285135..c541d1af 100644 --- a/backend/apps/system/api/workspace.py +++ b/backend/apps/system/api/workspace.py @@ -78,8 +78,6 @@ async def pager( oid: Optional[int] = Query(None, description="空间ID(仅admin用户生效)"), ): if current_user.isAdmin: - if not oid: - raise RuntimeError('oid miss error') workspace_id = oid else: workspace_id = current_user.oid