This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user