Skip to content

Commit

Permalink
fix(web): missing add photos button in album when viewed as owner (im…
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Apr 30, 2024
1 parent 926de96 commit 2cf63ee
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@
$: showActivityStatus =
album.sharedUsers.length > 0 && !$showAssetViewer && (album.isActivityEnabled || $numberOfComments > 0);
$: isEditor = album.albumUsers.find(({ user: { id } }) => id === $user.id)?.role === AlbumUserRole.Editor;
$: isEditor =
album.albumUsers.find(({ user: { id } }) => id === $user.id)?.role === AlbumUserRole.Editor ||
album.ownerId === $user.id;
$: albumHasViewers = album.albumUsers.some(({ role }) => role === AlbumUserRole.Viewer);
afterNavigate(({ from }) => {
Expand Down

0 comments on commit 2cf63ee

Please sign in to comment.