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