diff options
author | bobzel <zzzman@gmail.com> | 2023-07-12 18:55:35 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-07-12 18:55:35 -0400 |
commit | 2593940abd6298e7b38219b73f2779e6e9ee3475 (patch) | |
tree | 8a119c5905c8b7a4820fa8f1c3358e6cc0fcbc5d /src/fields/util.ts | |
parent | 733a822c0716cbf2d1c0143f37298471ffac44b6 (diff) | |
parent | 044f451de061373aa8865082ee9c02f567d17264 (diff) |
Merge branch 'collaboration-again' of https://github.com/brown-dash/Dash-Web into collaboration-again
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r-- | src/fields/util.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index fbbf3e164..28db77c65 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -178,7 +178,7 @@ const getEffectiveAclCache = computedFn(function (target: any, user?: string) { */ export function GetEffectiveAcl(target: any, user?: string): symbol { if (!target) return AclPrivate; - if (target[UpdatingFromServer]) return AclAdmin; + if (target[UpdatingFromServer] || Doc.CurrentUserEmail === 'guest') return AclAdmin; return getEffectiveAclCache(target, user); // all changes received from the server must be processed as Admin. return this directly so that the acls aren't cached (UpdatingFromServer is not observable) } |