From 109752125edc51e76d25a86067632a564f1e9f38 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 7 Jan 2020 21:15:03 +0000 Subject: [PATCH] --- devdocs/todo.txt | 3 +++ server/AyaNova/AyaNova.csproj | 2 +- server/AyaNova/biz/WidgetBiz.cs | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/devdocs/todo.txt b/devdocs/todo.txt index 4ce0b70f..1dedef88 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -21,6 +21,9 @@ REALLY MAKING MORE PROGRESS WHEN CLIENT DEV DRIVES BACKEND DEV, STICK TO THAT!! DO CLIENT STUFF NOW COME BACK TO THIS STUFF LATER +TODO: the license being logged breaks the format of the log file because it has line breaks etc, so instead, maybe log out as a single line (remove breaks) + - Or maybe don't log it at all, what's the point? People can just edit it, maybe the DBID is the only really useful thing so we can match it for support to the customer + - or just log the ID number or a more succint version *** BEFORE NEXT UPDATE TO DEVOPS SERVER::::::: TODO: 2019-06-07 10:47:57.8894|WARN|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|The CORS protocol does not allow specifying a wildcard (any) origin and credentials at the same time. diff --git a/server/AyaNova/AyaNova.csproj b/server/AyaNova/AyaNova.csproj index 50e152a7..2b35936f 100644 --- a/server/AyaNova/AyaNova.csproj +++ b/server/AyaNova/AyaNova.csproj @@ -19,7 +19,7 @@ - + diff --git a/server/AyaNova/biz/WidgetBiz.cs b/server/AyaNova/biz/WidgetBiz.cs index 5cae9107..4c80ec1d 100644 --- a/server/AyaNova/biz/WidgetBiz.cs +++ b/server/AyaNova/biz/WidgetBiz.cs @@ -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");