Fix incorrect isEditable() test in Item::moveToLibrary()

This commit is contained in:
Dan Stillman 2022-01-31 04:31:53 -05:00
parent df64a16b55
commit 637acbe693

View file

@ -4598,7 +4598,7 @@ Zotero.Item.prototype.clone = function (libraryID, options = {}) {
* @return {Zotero.Item} - New item
*/
Zotero.Item.prototype.moveToLibrary = async function (libraryID, onSkippedAttachment) {
if (!this.isEditable) {
if (!this.isEditable()) {
throw new Error("Can't move item in read-only library");
}
var library = Zotero.Libraries.get(libraryID);