diff --git a/chrome/content/zotero/xpcom/server/server_connector.js b/chrome/content/zotero/xpcom/server/server_connector.js index db046b4f22..ee73a433d2 100644 --- a/chrome/content/zotero/xpcom/server/server_connector.js +++ b/chrome/content/zotero/xpcom/server/server_connector.js @@ -930,7 +930,8 @@ Zotero.Server.Connector.GetSelectedCollection.prototype = { * @param {Function} sendResponseCallback function to send HTTP response */ init: function(postData, sendResponseCallback) { - var { library, collection, editable } = Zotero.Server.Connector.getSaveTarget(true); + let allowReadOnly = (postData.hasOwnProperty("switchToReadableLibrary")) ? !postData.switchToReadableLibrary : true; + var { library, collection, editable } = Zotero.Server.Connector.getSaveTarget(allowReadOnly); var response = { libraryID: library.libraryID, libraryName: library.name,