Skip to content

Commit

Permalink
share-folder: fix for users/teams/records from one shared-folder be…
Browse files Browse the repository at this point in the history
…ing added to other shared-folders when applying permissions updates to existing records/users/teams for multiple shared-folders
  • Loading branch information
aaunario-keeper committed May 15, 2024
1 parent 8275778 commit 6de16c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions keepercommander/commands/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,16 @@ def get_share_admin_obj_uids(obj_names, obj_type):
return

rq_groups = []
sf_users = set(as_users)
sf_teams = set(as_teams)
sf_records = set(record_uids)

def prep_rq(recs, users, curr_sf):
return self.prepare_request(params, kwargs, curr_sf, users, sf_teams, recs, default_record=default_record,
default_account=default_account, share_expiration=share_expiration)

for sf_uid in shared_folder_uids:
sf_users = as_users.copy()
sf_teams = as_teams.copy()
sf_records = record_uids.copy()

if sf_uid in params.shared_folder_cache:
sh_fol = params.shared_folder_cache[sf_uid]
if all_users or all_records:
Expand Down

0 comments on commit 6de16c9

Please sign in to comment.