mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-04-25 08:36:11 -04:00
a
This commit is contained in:
@@ -373,6 +373,7 @@ class NavMenuInlineTabs extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const isSelectMediaMode = inSelectMediaEmbedMode();
|
||||
const shareMediaDisabled = inEmbeddedApp() && new URLSearchParams(window.location.search).get('share_media') === '0';
|
||||
|
||||
// Append action=select_media to links when in select mode
|
||||
const mediaLink = isSelectMediaMode
|
||||
@@ -415,7 +416,7 @@ class NavMenuInlineTabs extends React.PureComponent {
|
||||
link={sharedByMeLink}
|
||||
/>
|
||||
) : null}
|
||||
{this.userIsAuthor ? (
|
||||
{this.userIsAuthor && !shareMediaDisabled ? (
|
||||
<InlineTab
|
||||
id="shared_with_me"
|
||||
isActive={'shared_with_me' === this.props.type}
|
||||
|
||||
Reference in New Issue
Block a user