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

Function resolve_record_permission_path

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

Source from the content-addressed store, hash-verified

1319
1320
1321def resolve_record_permission_path(params, record_uid, permission):
1322 # type: (KeeperParams, str, str) -> Optional[Dict]
1323
1324 for ap in enumerate_record_access_paths(params, record_uid):
1325 if ap.get(permission):
1326 path = {
1327 'record_uid': record_uid
1328 }
1329 if 'shared_folder_uid' in ap:
1330 path['shared_folder_uid'] = ap['shared_folder_uid']
1331 if 'team_uid' in ap:
1332 path['team_uid'] = ap['team_uid']
1333 return path
1334
1335 return None
1336
1337
1338def resolve_record_write_path(params, record_uid):

Callers 3

resolve_record_view_pathFunction · 0.85

Calls 2

getMethod · 0.80

Tested by

no test coverage detected