修改项目状态过滤器

Uat_Study
hang 2022-05-23 15:31:05 +08:00
parent 89523ba358
commit 96cf4c2354
1 changed files with 1 additions and 7 deletions

View File

@ -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)
{