From c3de2ce9584e650a3cc9056cffcaf88fdb003397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 11 Sep 2026 19:00:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E8=87=AA=E5=8A=A8=E5=88=87=E5=88=86?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE=E5=86=99?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在启动分离工作流前复用 asset.register 权限门禁。 --- apps/ai-game-creator-shell/src-tauri/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/ai-game-creator-shell/src-tauri/src/main.rs b/apps/ai-game-creator-shell/src-tauri/src/main.rs index 1f51a98ae..b8096e5d1 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/main.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/main.rs @@ -334,6 +334,8 @@ async fn separate_ui( asset_id: String, state: ui_editor::state::State, ) -> Result { + let root = Path::new(project_path.trim()); + enforce_project_permission_policy(root, "asset.register")?; ui_editor::commands::separate_ui_impl(project_path, asset_id, state).await }