Set lastModifiedByUser even if an annotation author is authoritative

This commit is contained in:
Martynas Bagdonas 2022-02-10 10:55:02 +02:00
parent cb2df23580
commit bcfd93bc79

View file

@ -129,6 +129,9 @@ Zotero.Annotations = new function () {
else if (!o.isExternal && isGroup) {
o.authorName = Zotero.Users.getName(item.createdByUserID);
o.isAuthorNameAuthoritative = true;
if (item.lastModifiedByUserID) {
o.lastModifiedByUser = Zotero.Users.getName(item.lastModifiedByUserID);
}
}
o.readOnly = o.isExternal || !isAuthor;
if (o.type == 'highlight') {