Browse Source

ENGINE-140 #comment prevent to accept excluded identity from devices where identity haven't been excluded

doc_update_sequoia
Edouard Tisserant 6 years ago
parent
commit
91e27f8b50
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      src/sync_actions.c

+ 13
- 0
src/sync_actions.c View File

@ -244,6 +244,19 @@ PEP_STATUS storeGroupKeys(
identity_list *group_keys = (identity_list *) _group_keys;
for (identity_list *il = group_keys; il && il->ident; il = il->next) {
// Check that identity isn't excluded from sync.
pEp_identity *stored_identity;
status = get_identity(session, il->ident->address, PEP_OWN_USERID,
&stored_identity);
if (status == PEP_STATUS_OK) {
if(stored_identity->flags & PEP_idf_not_for_sync){
free_identity(stored_identity);
continue;
}
free_identity(stored_identity);
}
free(il->ident->user_id);
il->ident->user_id = strdup(PEP_OWN_USERID);
assert(il->ident->user_id);


Loading…
Cancel
Save