diff options
author | bobzel <zzzman@gmail.com> | 2020-10-02 00:34:30 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-02 00:34:30 -0400 |
commit | 1dee63242684f02543cf7667b53baa00d10ab6c1 (patch) | |
tree | 105996e5a21d9e242c338496dc9c44fcf7a66dc4 /src/fields/util.ts | |
parent | 3c7f85dbcddca0ffacd82c2d39e88bba8c4b3f3a (diff) |
fixed email (de)normalization. fixed sharing to hide objects whose permissions have been revoked
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r-- | src/fields/util.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index 6c92aef81..4da9fce74 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -117,10 +117,10 @@ export function OVERRIDE_acl(val: boolean) { } export function normalizeEmail(email: string) { - return email.replace('.', '__'); + return email.replace(/\./g, '__'); } export function denormalizeEmail(email: string) { - return email.replace('__', '.'); + return email.replace(/__/g, '.'); } // playground mode allows the user to add/delete documents or make layout changes without them saving to the server |