Properly detect group in Zotero.CollectionTreeRow::isWithinGroup()

More follow-up from 1c8abf384
This commit is contained in:
Dan Stillman 2015-04-26 02:42:06 -04:00
parent 1f00e99e71
commit 694896273a

View file

@ -2152,7 +2152,7 @@ Zotero.CollectionTreeRow.prototype.isShare = function()
// Special
Zotero.CollectionTreeRow.prototype.isWithinGroup = function () {
return this.ref && !!this.ref.libraryID;
return this.ref && Zotero.Libraries.getType(this.ref.libraryID) == 'group';
}
Zotero.CollectionTreeRow.prototype.isWithinEditableGroup = function () {