Skip to content

Commit

Permalink
Pass user for file delete checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanieluz committed Mar 30, 2024
1 parent ef1129d commit 59aa0f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion defaults/core/cms/admin_menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,12 @@
</div>
</div>
{#if activeMedia === 'library'}
<MediaBrowser bind:media bind:changingMedia bind:showMediaModal />
<MediaBrowser
bind:media
bind:changingMedia
bind:showMediaModal
{user}
/>
{:else}
<FileUpload
bind:media
Expand Down
3 changes: 2 additions & 1 deletion defaults/core/cms/media_browser.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import ButtonWrapper from './button_wrapper.svelte';
import Button from './button.svelte';
export let media, changingMedia, showMediaModal;
export let media, changingMedia, showMediaModal, user;
let filters = [];
let enabledFilters = [];
let selectedMedia = [];
Expand Down Expand Up @@ -49,6 +49,7 @@
buttonStyle="secondary"
action="delete"
encoding="text"
{user}
/>
</ButtonWrapper>
{/if}
Expand Down

0 comments on commit 59aa0f2

Please sign in to comment.