From 468149c9ba92709cf9dfcb8306907c36ba799702 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 2 Dec 2025 16:42:46 +0800 Subject: 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. --- src/bin/jv.rs | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/bin') 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!( -- cgit