diff options
author | bobzel <zzzman@gmail.com> | 2022-07-20 09:12:11 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-07-20 09:12:11 -0400 |
commit | 724c1c1228aa601fdbbed93dde68a5a9fa9c5ae9 (patch) | |
tree | 1f5f4629b4b990c619ee4e76b3997f7706aefd8f /src/client/util/SharingManager.tsx | |
parent | a0b032c49e792e1bcaa69a584cacacb7e950bef1 (diff) |
added a 'guest' login mode. added ability for mainView to be any doc, not just a docking collection.
Diffstat (limited to 'src/client/util/SharingManager.tsx')
-rw-r--r-- | src/client/util/SharingManager.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx index 793027ea1..895bd3374 100644 --- a/src/client/util/SharingManager.tsx +++ b/src/client/util/SharingManager.tsx @@ -23,6 +23,7 @@ import { GroupMemberView } from './GroupMemberView'; import { SelectionManager } from './SelectionManager'; import './SharingManager.scss'; import { LinkManager } from './LinkManager'; +import { Id } from '../../fields/FieldSymbols'; export interface User { email: string; @@ -136,7 +137,7 @@ export class SharingManager extends React.Component<{}> { * Populates the list of validated users (this.users) by adding registered users which have a sharingDocument. */ populateUsers = async () => { - if (!this.populating) { + if (!this.populating && Doc.UserDoc()[Id] !== '__guest__') { this.populating = true; const userList = await RequestPromise.get(Utils.prepend('/getUsers')); const raw = JSON.parse(userList) as User[]; |