This commit is contained in:
2020-05-08 14:46:04 +00:00
parent d599913211
commit 79727bb885

View File

@@ -136,7 +136,7 @@ namespace AyaNova.Biz
CopyObject.Copy(dtPutObject, dbObject, "Id,Serial");
//if user has rights then change it, otherwise just ignore it and do the rest
if (SnapshotOfOriginalDBObj.Serial != dtPutObject.Serial && Authorized.HasAnyRole(CurrentUserRoles, RolesAllowedToChangeSerial))
if (dtPutObject.Serial != 0 && SnapshotOfOriginalDBObj.Serial != dtPutObject.Serial && Authorized.HasAnyRole(CurrentUserRoles, RolesAllowedToChangeSerial))
{
dbObject.Serial = dtPutObject.Serial;
}