Fix embed dropdown menu item for unauthenticated users (#25964)

This commit is contained in:
Claire 2023-07-13 15:53:03 +02:00 committed by GitHub
parent 644c5fddd8
commit 41f65edb21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 194 additions and 76 deletions

View file

@ -205,7 +205,7 @@ class ActionBar extends PureComponent {
menu.push({ text: intl.formatMessage(messages.share), action: this.handleShare });
}
if (publicStatus) {
if (publicStatus && (signedIn || !isRemote)) {
menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
}