修改权限

Uat_Study
hang 2022-05-24 13:56:38 +08:00
parent c5810f7b0d
commit 5348daad3f
1 changed files with 4 additions and 4 deletions

View File

@ -339,7 +339,7 @@ namespace IRaCIS.Core.Application.Image.QA
[TypeFilter(typeof(TrialResourceFilter))]
public async Task<IResponseOutput> 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<IResponseOutput> 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<IResponseOutput> 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<IResponseOutput> 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具有操作权限!");
}