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
This commit is contained in:
parent
f28873382d
commit
399baf0d73
1 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue