diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-12-02 16:42:46 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-12-02 16:42:46 +0800 |
| commit | 468149c9ba92709cf9dfcb8306907c36ba799702 (patch) | |
| tree | 9cd1aa029ac083f136ac62802c53651728c03871 /src | |
| parent | cbbe17e556c29e2fe69393bff9e694efe09410f3 (diff) | |
Remove local file existence check from change edit right
The check for whether files exist locally before allowing edit right
changes has been removed. This allows users to change edit rights for
files that may not yet exist locally but are tracked in the sheet.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/jv.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/bin/jv.rs b/src/bin/jv.rs index 62ec487..1219711 100644 --- a/src/bin/jv.rs +++ b/src/bin/jv.rs @@ -2727,25 +2727,6 @@ async fn jv_change_edit_right( } for file in filtered_files { - let full_path = local_dir.join(&file); - - // File exists - if !full_path.exists() { - let reason = t!( - "jv.fail.change_edit_right.check_fail_item", - path = file.display(), - reason = t!("jv.fail.change_edit_right.check_fail_reason.not_found_in_local") - ) - .trim() - .to_string(); - - if !handle_validation_failure(show_fail_details, &mut details, &mut failed, num, reason) - { - return; - } - continue; - } - // Mapping exists if !cached_sheet.mapping().contains_key(&file) { let reason = t!( |
