fix(gui): import the ownership helpers the item menu calls

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 <noreply@anthropic.com>
This commit is contained in:
Juan Castro
2026-08-14 14:30:51 -04:00
co-authored by Claude Fable 5
parent 22dcc72f47
commit 5f440333cd
+2
View File
@@ -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';