From 96cf4c2354c585d2b12c31f682ffeb114981f5c3 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Mon, 23 May 2022 15:31:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E8=BF=87=E6=BB=A4=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BusinessFilter/TrialResourceFilter.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/IRaCIS.Core.Application/BusinessFilter/TrialResourceFilter.cs b/IRaCIS.Core.Application/BusinessFilter/TrialResourceFilter.cs index cc485689a..d368213da 100644 --- a/IRaCIS.Core.Application/BusinessFilter/TrialResourceFilter.cs +++ b/IRaCIS.Core.Application/BusinessFilter/TrialResourceFilter.cs @@ -31,7 +31,7 @@ namespace IRaCIS.Core.Application.Filter { #region 处理新的用户类型,不能操作项目相关接口 - /// 后期列举出具体的类型,其他任何用户类型,都不允许操作 + // 后期列举出具体的类型,其他任何用户类型,都不允许操作 if( _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CRA) { context.Result = new JsonResult(ResponseOutput.NotOk("Sorry,Your UserType does not allow this operation")); @@ -96,12 +96,6 @@ namespace IRaCIS.Core.Application.Filter var trialStatusStr = cacheResultDic[trialIdStr]; - ////项目完成和停止,都不能操作 - //if (trialStatusStr.Value == StaticData.TrialCompleted || trialStatusStr.Value == StaticData.TrialStopped) - //{ - // context.Result = new JsonResult(ResponseOutput.NotOk("Only trial in ongoing state can the operation be performed")); - //} - // 这里是统一拦截 项目有关的操作允许情况(特殊的地方,比如项目配置(有的在多种状态(初始化,ongoing)都可以操作,有的仅仅在Initializing)还有 项目添加和更新,不走这里,特殊处理,不然在这里显得很乱,判断是哪个接口) if (trialStatusStr.Value == StaticData.TrialOngoing) {