From 981ae016c74af9ccfd8b4871a331a1e540454451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Wed, 2 Feb 2022 11:08:17 +0500 Subject: [PATCH] fix userRole validator. IdType can be anything --- AsbCloudInfrastructure/Validators/UserRoleDtoValidator.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/AsbCloudInfrastructure/Validators/UserRoleDtoValidator.cs b/AsbCloudInfrastructure/Validators/UserRoleDtoValidator.cs index 38563a2d..46333aa1 100644 --- a/AsbCloudInfrastructure/Validators/UserRoleDtoValidator.cs +++ b/AsbCloudInfrastructure/Validators/UserRoleDtoValidator.cs @@ -9,8 +9,6 @@ namespace AsbCloudInfrastructure.Validators { RuleFor(x => x.Caption).Length(0, 50) .WithMessage("Допустимая длина названия роли от 1 до 50 символов"); - RuleFor(x => x.IdType).GreaterThan(0) - .WithMessage("Id типа роли не может быть ниже 1"); } } } \ No newline at end of file