From e2e6a4697dc2e8c444663c855f9fdab0e99e536d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 18 May 2020 18:20:47 +0000 Subject: [PATCH] --- devdocs/todo.txt | 8 +++++++- server/AyaNova/biz/UserBiz.cs | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/devdocs/todo.txt b/devdocs/todo.txt index f7600045..ec87d5d5 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -8,7 +8,13 @@ PRIORITY - ALWAYS Lowest level stuff first -todo: Licensing - make sure tech type use license works properly: a tech license is consumed if a user has **any one** of the four roles of TechFull, TechLimited, SubcontractorFull, SubcontractorLimited +todo: Licensing - make sure tech type use license works properly: a tech license is consumed if a user has +**any one** of the four roles of TechFull, TechLimited, SubcontractorFull, SubcontractorLimited + NO, NOT TRUE AT ALL, those are authorization roles, not user types, it's coded properly already +todo: usertype scheduleable? Or sb Service and nonScheduleble sb NonService and subcontractor sb ServiceContractor? + will require some renaming of things but this is more logical and meets intended usage +todo: Pick a consistent single letter lambda expression variable and standardize on it. + one of X Y or Z is best as it doesn't trigger intellisense todo: OPS routes (SERVER AND CLIENT) - Backup, restore https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3369 - These need to be done fairly early on in order to have shit to play with for testing etc diff --git a/server/AyaNova/biz/UserBiz.cs b/server/AyaNova/biz/UserBiz.cs index 755e9498..7ba64f00 100644 --- a/server/AyaNova/biz/UserBiz.cs +++ b/server/AyaNova/biz/UserBiz.cs @@ -32,7 +32,9 @@ namespace AyaNova.Biz internal static async Task ActiveCountAsync() { var ct = ServiceProviderProvider.DBContext; - var ret = await ct.User.Where(x => x.Active == true && (x.UserType == UserType.Schedulable || x.UserType == UserType.Subcontractor)).LongCountAsync(); + var ret = await ct.User.Where(x => x.Active == true && ( + x.UserType == UserType.Schedulable || + x.UserType == UserType.Subcontractor)).LongCountAsync(); return ret; }