feat: merge cross-album search, auto-rules, album UI redesign, editorial archiving and pdf download into main
This commit is contained in:
commit
e555069ee1
22 files changed
+1110
-138
No files matched your search
@@ -45,7 +45,9 @@ export function createAlbumCatalog({ grants, immich }: AlbumCatalogDependencies)
|
||||
input: SearchVisiblePhotosInput,
|
||||
): Promise<ImmichSearchPage> {
|
||||
const grantedAlbumIds = await currentGrantIds(grants, editorialId);
|
||||
const albumIds = authorizedSearchAlbums(grantedAlbumIds, input.requestedAlbumId);
|
||||
const albumIds = input.requestedAlbumId
|
||||
? authorizedSearchAlbums(grantedAlbumIds, input.requestedAlbumId)
|
||||
: grantedAlbumIds;
|
||||
if (albumIds.length === 0) {
|
||||
return emptySearchPage();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user