(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
pull/115/head
Paul Fitzpatrick 3 years ago
parent 258d3cbb89
commit 4164d89b84

@ -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(

Loading…
Cancel
Save