(core) annotate guests of other docs correctly in UserManager dialog

Summary:
This corrects the annotations of users who are not team members but
are guests of other documents. Their annotation was previously
blank, rather than showing as collaborators.

Test Plan: added test

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3178
This commit is contained in:
Paul Fitzpatrick 2021-12-09 11:35:51 -05:00
parent 258d3cbb89
commit 4164d89b84

View File

@ -74,6 +74,7 @@ export class ShareAnnotator {
.map(([k, ]) => normalizeEmail(k)));
for (const user of this._state.users) {
if (removed.has(user.email)) { continue; }
if (!user.isMember && !user.access) { continue; }
annotations.users.set(user.email, makeAnnotation(user));
}
const tweaks = new Set(