去掉添加修改项目里面写死的权限控制
parent
70513ff8b8
commit
2e117d6641
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue