MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / resolve_record_permission_path

Function resolve_record_permission_path

keepercommander/api.py:1357–1371  ·  view source on GitHub ↗
(params, record_uid, permission)

Source from the content-addressed store, hash-verified

1355
1356
1357def resolve_record_permission_path(params, record_uid, permission):
1358 # type: (KeeperParams, str, str) -> Optional[Dict]
1359
1360 for ap in enumerate_record_access_paths(params, record_uid):
1361 if ap.get(permission):
1362 path = {
1363 'record_uid': record_uid
1364 }
1365 if 'shared_folder_uid' in ap:
1366 path['shared_folder_uid'] = ap['shared_folder_uid']
1367 if 'team_uid' in ap:
1368 path['team_uid'] = ap['team_uid']
1369 return path
1370
1371 return None
1372
1373
1374def resolve_record_write_path(params, record_uid):

Callers 3

resolve_record_view_pathFunction · 0.85

Calls 2

getMethod · 0.45

Tested by

no test coverage detected