From 5348daad3fa0857524061d538cdec90a64eae71c Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 24 May 2022 13:56:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/QC/QCOperationService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index efa8c4682..3e9cb5042 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -339,7 +339,7 @@ namespace IRaCIS.Core.Application.Image.QA [TypeFilter(typeof(TrialResourceFilter))] public async Task SetCheckPass(SetCheckPassDt data) { - if (_userInfo.UserTypeEnumInt != (int)UserTypeEnum.ProjectManager || _userInfo.UserTypeEnumInt != (int)UserTypeEnum.APM) + if (_userInfo.UserTypeEnumInt != (int)UserTypeEnum.ProjectManager && _userInfo.UserTypeEnumInt != (int)UserTypeEnum.APM) { ResponseOutput.NotOk("您不是PM/APM,不允许设置一致性核查通过"); } @@ -417,7 +417,7 @@ namespace IRaCIS.Core.Application.Image.QA [HttpPut("{trialId:guid}/{subjectVisitId:guid}")] public async Task RejectCheckBack(Guid subjectVisitId) { - if (_userInfo.UserTypeEnumInt != (int)UserTypeEnum.ProjectManager || _userInfo.UserTypeEnumInt != (int)UserTypeEnum.APM) + if (_userInfo.UserTypeEnumInt != (int)UserTypeEnum.ProjectManager && _userInfo.UserTypeEnumInt != (int)UserTypeEnum.APM) { return ResponseOutput.NotOk(" 只有PM/APM具有操作权限!"); } @@ -449,7 +449,7 @@ namespace IRaCIS.Core.Application.Image.QA [UnitOfWork] public async Task CheckBack(Guid subjectVisitId) { - if (_userInfo.UserTypeEnumInt != (int)UserTypeEnum.ProjectManager || _userInfo.UserTypeEnumInt != (int)UserTypeEnum.APM) + if (_userInfo.UserTypeEnumInt != (int)UserTypeEnum.ProjectManager && _userInfo.UserTypeEnumInt != (int)UserTypeEnum.APM) { return ResponseOutput.NotOk("只有PM/APM具有操作权限!"); } @@ -521,7 +521,7 @@ namespace IRaCIS.Core.Application.Image.QA [TypeFilter(typeof(TrialResourceFilter))] public async Task UploadVisitCheckExcel(IFormFile file, Guid trialId) { - if (_userInfo.UserTypeEnumInt != (int)UserTypeEnum.ProjectManager|| _userInfo.UserTypeEnumInt != (int)UserTypeEnum.APM) + if (_userInfo.UserTypeEnumInt != (int)UserTypeEnum.ProjectManager && _userInfo.UserTypeEnumInt != (int)UserTypeEnum.APM) { return ResponseOutput.NotOk("只有PM/APM具有操作权限!"); }