This commit is contained in:
2022-08-23 21:42:48 +00:00
parent e06334a175
commit 01e821c8c5

View File

@@ -57,7 +57,7 @@ namespace AyaNova.Biz
{
//all users who are customer or head office, active and have a login name set
var ret = await ct.User.AsNoTracking().Where(z => z.Login != null && z.Active == true && (
var ret = await ct.User.AsNoTracking().Where(z => z.AllowLogin == true && z.Active == true && (
z.UserType == UserType.Customer ||
z.UserType == UserType.HeadOffice)).LongCountAsync();
return ret;
@@ -867,8 +867,8 @@ namespace AyaNova.Biz
if (proposedObj.Active != currentObj.Active)
AddError(ApiErrorCode.NOT_AUTHORIZED, "Active");
if (proposedObj.AllowLogin != currentObj.AllowLogin)
if (proposedObj.AllowLogin != currentObj.AllowLogin)
AddError(ApiErrorCode.NOT_AUTHORIZED, "AllowLogin");
if (proposedObj.Name != currentObj.Name)