From 5f440333cd7c511817dca1fc6b4fe4cc8b6c1261 Mon Sep 17 00:00:00 2001 From: Juan Castro Date: Fri, 14 Aug 2026 14:30:51 -0400 Subject: [PATCH] fix(gui): import the ownership helpers the item menu calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The single-item context menu handler calls is_owned_by_me and shared_mode_for, but the imports were only ever added to generate_file_context_menu.js — so every right-click on an item threw a ReferenceError before the menu could build, and the non-owner Delete gating never ran. Co-Authored-By: Claude Fable 5 --- src/gui/src/UI/UIItem.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/src/UI/UIItem.js b/src/gui/src/UI/UIItem.js index 3a289abee..842680a65 100644 --- a/src/gui/src/UI/UIItem.js +++ b/src/gui/src/UI/UIItem.js @@ -32,6 +32,8 @@ import open_item from '../helpers/open_item.js'; import publish_as_website from '../helpers/publish_as_website.js'; import mime from '../lib/mime.js'; import { isWeblinkName, weblinkChangeIconMenuItem } from '../helpers/weblink.js'; +import { is_owned_by_me } from '../helpers/path_owner.js'; +import { shared_mode_for } from '../helpers/shared_access.js'; const AI_APP_NAME = 'ai';