Skip to content

Commit

Permalink
Resolve access issue for unauthenticated users
Browse files Browse the repository at this point in the history
  • Loading branch information
x24git committed Oct 16, 2024
1 parent 0c3e599 commit c4ceaea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/lib/components/asset-viewer/detail-panel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@
</div>
{/if}

{#if (currentAlbum && currentAlbum.albumUsers.length > 0 && asset.owner && asset.ownerId != $user.id) || (asset.ownerId != $user.id && asset.owner)}
{#if (asset.ownerId != $user?.id && asset.owner) || ($user === undefined && asset.owner)}
<section class="px-6 dark:text-immich-dark-fg mt-4">
{#if currentAlbum}
<p class="text-sm">{$t('shared_by').toUpperCase()}</p>
Expand Down

0 comments on commit c4ceaea

Please sign in to comment.