Allow importing annotations in group libraries

This commit is contained in:
Martynas Bagdonas 2022-10-04 14:22:54 +03:00
parent 4dd1851140
commit b594ad0b0a

View file

@ -160,8 +160,7 @@ const ZoteroStandalone = new function() {
let item = Zotero.Items.get(reader.itemID);
let library = Zotero.Libraries.get(item.libraryID);
if (item
// Don't allow annotation transfer in group libraries
&& library.libraryType == 'user'
&& library.filesEditable
&& library.editable
&& !(item.deleted || item.parentItem && item.parentItem.deleted)) {
let annotations = item.getAnnotations();