From 399baf0d73ab5e0ef58fe3ac306355c1c4cbfdf3 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Fri, 22 Sep 2023 09:13:36 -0400 Subject: [PATCH] disable "Find available PDF" if files not editable (#3430) For example, in a public group files are not editable, so this menu item is disabled. Fixes: #3428 --- chrome/content/zotero/zoteroPane.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index ed60021552..63c7b748c7 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -3716,6 +3716,9 @@ var ZoteroPane = new function() if (Zotero.Attachments.canFindPDFForItem(item)) { show.add(m.findPDF); show.add(m.sep3); + if (!collectionTreeRow.filesEditable) { + disable.add(m.findPDF); + } } if (Zotero.RecognizeDocument.canUnrecognize(item)) {