feat: update audit platform workspace
This commit is contained in:
@@ -76,7 +76,9 @@ class CrossReviewController(BaseController):
|
||||
"""查询当前用户参与的交叉评查任务。"""
|
||||
if not await self._check_permission(int(payload["user_id"]), [self._PERMISSIONS["task_read"]]):
|
||||
return JSONResponse(status_code=403, content={"code": 403, "msg": "当前用户没有查看交叉评查任务权限", "data": None})
|
||||
Data = await self.CrossReviewService.GetUserTasks(CurrentUserId=int(payload["user_id"]), Body=Body)
|
||||
UserId = int(payload["user_id"])
|
||||
CanViewProgress = await self._check_permission(UserId, [self._PERMISSIONS["progress_view"]])
|
||||
Data = await self.CrossReviewService.GetUserTasks(CurrentUserId=UserId, Body=Body, CanViewProgress=CanViewProgress)
|
||||
return Result.success(data=Data)
|
||||
|
||||
@self.router.get("/tasks/{TaskId}/progress", response_model=Result[CrossReviewTaskProgressVO])
|
||||
|
||||
Reference in New Issue
Block a user