This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<PackageReference Include="App.Metrics.Reporting.InfluxDB" Version="3.2.0-dev0002" />
|
||||
<PackageReference Include="Bogus" Version="28.4.1" />
|
||||
<PackageReference Include="BouncyCastle.NetCore" Version="1.8.5" />
|
||||
<PackageReference Include="Enums.NET" Version="2.3.2" />
|
||||
<PackageReference Include="Enums.NET" Version="3.0.2" />
|
||||
<PackageReference Include="jose-jwt" Version="2.4.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="3.1.0" />
|
||||
|
||||
@@ -414,7 +414,8 @@ namespace AyaNova.Biz
|
||||
AddError(ApiErrorCode.VALIDATION_STARTDATE_AFTER_ENDDATE, "StartDate");
|
||||
|
||||
//Enum is valid value
|
||||
|
||||
//Note: because of the way the flags work as powers of 2 and with the 1 being the first flag value, basically any value up to the "All" value will be valid
|
||||
//because you can make any number from 0 to all using any combination of the flags so the only thing that will fail is less than zero or greater than All
|
||||
if (!proposedObj.Roles.IsValid())
|
||||
{
|
||||
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "Roles");
|
||||
|
||||
Reference in New Issue
Block a user