修改权限
This commit is contained in:
@@ -10,25 +10,31 @@ namespace IRaCIS.Core.Application.Auth
|
||||
|
||||
public static class IRaCISPolicy
|
||||
{
|
||||
public const string PM_APM = "PM_APM";
|
||||
|
||||
public const string PM_APM_CRC = "PM_APM_CRC";
|
||||
|
||||
public const string CRC_IQC = "CRC_IQC";
|
||||
|
||||
public const string CRC = "CRC";
|
||||
|
||||
public const string PM = "PM";
|
||||
|
||||
public const string IQC = "IQC";
|
||||
|
||||
public const string PM_IQC = "PM_IQC";
|
||||
|
||||
public const string IQC = "IQC";
|
||||
public const string CRC_IQC = "CRC_IQC";
|
||||
|
||||
|
||||
public const string SPM_CPM = "SPM_CPM";
|
||||
public const string PM_APM = "PM_APM";
|
||||
public const string PM_APM_CRC = "PM_APM_CRC";
|
||||
|
||||
|
||||
|
||||
|
||||
public const string PM_APM_SPM_CPM = "PM_APM_SPM_CPM";
|
||||
|
||||
public const string PM_APM_CRC_QC = "PM_APM_CRC_QC";
|
||||
|
||||
public const string SPM_CPM = "SPMAndCPM";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user