feat: Always show share button (#2469)

This is to enable the share page also for internal team members.

closes #2444
This commit is contained in:
Wesley
2021-08-23 08:20:29 +02:00
committed by GitHub
parent d8ad2fc1a2
commit a50471959b
4 changed files with 48 additions and 10 deletions

View File

@@ -79,7 +79,6 @@ function DocumentHeader({
const isNew = document.isNewDocument;
const isTemplate = document.isTemplate;
const can = policies.abilities(document.id);
const canShareDocument = auth.team && auth.team.sharing && can.share;
const canToggleEmbeds = auth.team && auth.team.documentEmbeds;
const canEdit = can.update && !isEditing;
@@ -171,7 +170,7 @@ function DocumentHeader({
<TemplatesMenu document={document} />
</Action>
)}
{!isEditing && canShareDocument && (!isMobile || !isTemplate) && (
{!isEditing && (!isMobile || !isTemplate) && (
<Action>
<ShareButton document={document} />
</Action>