diff --git a/docs/8.0/ayanova/docs/adm-license.md b/docs/8.0/ayanova/docs/adm-license.md index fbc32b01..c904d9a8 100644 --- a/docs/8.0/ayanova/docs/adm-license.md +++ b/docs/8.0/ayanova/docs/adm-license.md @@ -193,7 +193,11 @@ These items are kept as this feature is typically used when people are evaluatin ## Downgrading a license -If a new license is installed with fewer Users than previously licensed, AyaNova will automatically deactivate excess Users during license installation. It will first deactivate Users that have not logged in then it will deactivate Users in order of last login from the oldest last login to newest. +If a new license is installed with fewer Users than previously licensed, AyaNova will automatically deactivate excess Users during license installation in order to ensure the license will install rather than fail. + +AyaNova will attempt to deactivate the least active Users to minimize disruption. + +It will first deactivate Users that have not logged in previously then it will deactivate Users in order of last login from the oldest last login to newest. To avoid this from happening be sure to [manually uncheck and save each User's Active field checkbox](adm-users.md#active) for any excess Users no longer required before attempting to install a new license with a smaller User count that currently active. diff --git a/server/AyaNova/biz/UserBiz.cs b/server/AyaNova/biz/UserBiz.cs index 1471bb4f..f2b5b5ef 100644 --- a/server/AyaNova/biz/UserBiz.cs +++ b/server/AyaNova/biz/UserBiz.cs @@ -98,7 +98,6 @@ namespace AyaNova.Biz z.UserType != UserType.Customer && z.UserType != UserType.HeadOffice)).OrderBy(z => z.LastLogin).ToListAsync(); - //iterate users and set to inactive preferring the least likely to be affected users //first do the ones that have never logged in diff --git a/server/AyaNova/util/License.cs b/server/AyaNova/util/License.cs index 843d91b8..99febdd4 100644 --- a/server/AyaNova/util/License.cs +++ b/server/AyaNova/util/License.cs @@ -876,7 +876,6 @@ namespace AyaNova.Core //but it can't handle customer login downgrade as that might fuck up the business badly if suddenly a bunch of random customers can't login so *they* would need to handle that themselves manually //so keeping that bit of code here - //SUBSCRIPTION CUSTOMER LOGIN ACCOUNT QUANTITY DOWNGRADED? long NewCustomerLicensedCount = ParsedNewKey.ActiveCustomerContactUsersCount; long ExistingCustomerUserCount = await AyaNova.Biz.UserBiz.ActiveCustomerContactUserCountAsync();