mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Add a read-only library param to /connector/getSelectedCollection
Part of zotero/zotero-connectors#546
This commit is contained in:
parent
3ff13bc08d
commit
9d04392eb0
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue