(params, record_uid, permission)
| 1355 | |
| 1356 | |
| 1357 | def 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 | |
| 1374 | def resolve_record_write_path(params, record_uid): |
no test coverage detected