Move editable and filesEditable props to libraries table [DB reupgrade]
And add group.fromJSON(json, userID), which sets editable and filesEditable properties based on the group JSON (libraryReading, role lists, etc.) and the given user
This commit is contained in:
parent
53706d633a
commit
a22c4969e6
9 changed files with 294 additions and 106 deletions
|
@ -331,7 +331,9 @@ describe("Zotero.CollectionTreeView", function() {
|
|||
linked = yield attachment.getLinkedItem(group.libraryID);
|
||||
assert.equal(linked.id, treeRow.ref.id);
|
||||
|
||||
yield group.erase()
|
||||
yield Zotero.DB.executeTransaction(function* () {
|
||||
return group.erase();
|
||||
})
|
||||
})
|
||||
|
||||
it("should not copy an item or its attachment to a group twice", function* () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue