(row)
| 427 | } |
| 428 | |
| 429 | function resetRowIfInheritedOnly(row) { |
| 430 | if (row.dataset.admin === '1') return; |
| 431 | if (row.dataset.explicit === '1') return; |
| 432 | qsa(row, 'input[type="checkbox"]').forEach(cb => { |
| 433 | if (cb.hasAttribute('data-inherit')) return; |
| 434 | if (cb.hasAttribute('data-group-lock')) return; |
| 435 | if (cb.hasAttribute('data-hard-disabled')) return; |
| 436 | cb.checked = false; |
| 437 | if (cb.dataset.cap === 'viewOwn') { |
| 438 | cb.disabled = false; |
| 439 | cb.removeAttribute('title'); |
| 440 | } |
| 441 | }); |
| 442 | } |
| 443 | |
| 444 | function refreshInheritance() { |
| 445 | const rows = qsa(list, '.folder-access-row').sort((a, b) => (a.dataset.folder || '').length - (b.dataset.folder || '').length); |
no test coverage detected