www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit e5a5a8d303ead5f0df8b6372054083da92587d6e
parent 1621f5772b4a01fe52e50008d082a14242e1cdb1
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date:   Wed, 10 Jun 2015 04:43:54 -0500

Don't allow erasing objects from read-only libraries

Diffstat:
Mchrome/content/zotero/xpcom/data/dataObject.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/dataObject.js b/chrome/content/zotero/xpcom/data/dataObject.js @@ -1175,9 +1175,13 @@ Zotero.DataObject.prototype._initErase = function (env) { key: this.key }; + if (!env.options.skipEditCheck) this.editCheck(); + if (env.options.skipDeleteLog) { env.notifierData[this.id].skipDeleteLog = true; } + + return Zotero.Promise.resolve(true); }; Zotero.DataObject.prototype._finalizeErase = Zotero.Promise.coroutine(function* (env) {