(params, record_uid, permission)
| 1319 | |
| 1320 | |
| 1321 | def 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 | |
| 1338 | def resolve_record_write_path(params, record_uid): |
no test coverage detected