修改权限

This commit is contained in:
2022-05-25 17:48:00 +08:00
parent 8c1ce00f89
commit d43f07b8b5
3 changed files with 31 additions and 11 deletions
@@ -340,12 +340,11 @@ namespace IRaCIS.Application.Services
/// <param name="trialId">临床试验项目Id</param>
[HttpDelete, Route("{trialId:guid}")]
[TypeFilter(typeof(TrialResourceFilter))]
public async Task<IResponseOutput> DeleteTrial(Guid trialId)
{
var trial = (await _trialRepository.FirstOrDefaultAsync(u => u.Id == trialId)).IfNullThrowException();
var trial = (await _trialRepository.FirstOrDefaultAsync(u => u.Id == trialId,true)).IfNullThrowException();
if (_verifyConfig.CurrentValue.OpenTrialRelationDelete )