aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/util/SharingManager.tsx2
-rw-r--r--src/client/views/PropertiesView.tsx3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx
index 67b4d9d1a..3a0672113 100644
--- a/src/client/util/SharingManager.tsx
+++ b/src/client/util/SharingManager.tsx
@@ -582,7 +582,7 @@ export class SharingManager extends React.Component<{}> {
</div>
</div>
) : null,
- sameAuthor && targetDoc?.author !== Doc.CurrentUserEmail ? (
+ sameAuthor && targetDoc?.author !== Doc.CurrentUserEmail && Doc.CurrentUserEmail != 'guest' ? (
<div key={'me'} className={'container'}>
<span className={'padding'}>Me</span>
<div className="edit-actions">
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index 14291b537..2b12a7b58 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -463,8 +463,7 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
// adds current user
var userEmail = Doc.CurrentUserEmail;
const userKey = `acl-${normalizeEmail(userEmail)}`;
- if (userEmail == 'guest') userEmail = 'Public';
- if (!usersAdded.includes(userEmail) && userEmail != 'Public' && userEmail != target.author) {
+ if (!usersAdded.includes(userEmail) && userEmail != 'guest' && userEmail != target.author) {
var permission;
if (this.layoutDocAcls){
if (target[DocAcl][userKey]) permission = HierarchyMapping.get(target[DocAcl][userKey])?.name;