https://avni.freshdesk.com/a/tickets/7224
Issue:
Lets say 'Account name' is the sync attribute.
- When registering we check if value for 'Account name' matches with the user settings
- When editing we check if the saved entity's sync concept value matches. But if Account name is edited to invalid value we don't validate leading to the ticket.
Eg: User(has 'Tiru' in user sync attribute setting) has saved an entity with 'Tiru' account name. Updates the entity's account name to 'Thiru' and saves it. He can do this since we validate with already saved and not the to be saved value.
AC:
When editing, validate sync attribute setting with both already saved and to be saved values.