去掉添加修改项目里面写死的权限控制
This commit is contained in:
@@ -159,12 +159,7 @@ namespace IRaCIS.Application.Services
|
||||
public virtual async Task<IResponseOutput<Trial>> AddOrUpdateTrial(TrialCommand trialAddModel)
|
||||
{
|
||||
|
||||
// 到时候 策略授权 统一改 归类
|
||||
if (!(_userInfo.UserTypeEnumInt == (int)UserTypeEnum.APM || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.ProjectManager || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.SuperAdmin))
|
||||
{
|
||||
//---只有PM/APM拥有操作权限!
|
||||
throw new BusinessValidationFailedException(_localizer["Trial_PMApmPermission"]);
|
||||
}
|
||||
|
||||
|
||||
//测试用户 只能创建非正式项目
|
||||
if (_userInfo.IsTestUser && trialAddModel.TrialType != TrialType.NoneOfficial)
|
||||
|
||||
Reference in New Issue
Block a user