This commit is contained in:
2021-07-12 19:28:18 +00:00
parent 56d8cc27cb
commit f7e2f5c5ac
10 changed files with 80 additions and 17 deletions

View File

@@ -529,7 +529,7 @@ namespace AyaNova.Util
///////////////////////////////////////////
// Check if DB has evaluation user accounts
// CALLED BY by login ping from licent via notify controller
// CALLED BY by login ping from client via notify controller
internal static async Task<bool> DBHasTrialUsersAsync(AyContext ct, ILogger _log)
{
_log.LogDebug("DB trial users presence check");
@@ -539,11 +539,11 @@ namespace AyaNova.Util
//just check for a few for testing
if (await ct.User.AsNoTracking()
.Where(z =>
z.Login == "BizAdminFull" ||
z.Login == "ServiceFull" ||
z.Login == "InventoryFull" ||
z.Login == "BizAdmin" ||
z.Login == "Service" ||
z.Login == "Inventory" ||
z.Login == "Accounting" ||
z.Login == "TechFull"
z.Login == "Tech"
).LongCountAsync() < 5) return false;
return true;