修改项目状态过滤器
parent
89523ba358
commit
96cf4c2354
|
@ -31,7 +31,7 @@ namespace IRaCIS.Core.Application.Filter
|
||||||
{
|
{
|
||||||
#region 处理新的用户类型,不能操作项目相关接口
|
#region 处理新的用户类型,不能操作项目相关接口
|
||||||
|
|
||||||
/// 后期列举出具体的类型,其他任何用户类型,都不允许操作
|
// 后期列举出具体的类型,其他任何用户类型,都不允许操作
|
||||||
if( _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CRA)
|
if( _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CRA)
|
||||||
{
|
{
|
||||||
context.Result = new JsonResult(ResponseOutput.NotOk("Sorry,Your UserType does not allow this operation"));
|
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];
|
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)还有 项目添加和更新,不走这里,特殊处理,不然在这里显得很乱,判断是哪个接口)
|
// 这里是统一拦截 项目有关的操作允许情况(特殊的地方,比如项目配置(有的在多种状态(初始化,ongoing)都可以操作,有的仅仅在Initializing)还有 项目添加和更新,不走这里,特殊处理,不然在这里显得很乱,判断是哪个接口)
|
||||||
if (trialStatusStr.Value == StaticData.TrialOngoing)
|
if (trialStatusStr.Value == StaticData.TrialOngoing)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue