1.1 --- a/src/sync_api.c Tue Jan 28 19:14:12 2020 +0100
1.2 +++ b/src/sync_api.c Tue Jan 28 22:44:53 2020 +0100
1.3 @@ -315,7 +315,7 @@
1.4 return status;
1.5
1.6 // if identity is already disabled for sync do nothing
1.7 - if (!(ident->flags & PEP_idf_devicegroup) || (ident->flags & PEP_idf_not_for_sync))
1.8 + if (!(ident->flags & PEP_idf_devicegroup) && (ident->flags & PEP_idf_not_for_sync))
1.9 return PEP_STATUS_OK;
1.10
1.11 status = unset_identity_flags(session, ident, PEP_idf_devicegroup);