1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

fix(server): show partners assets on timeline without permission (#10705)

* fix(server): show partners assets on timeline without permission

* save all

* correct fix
This commit is contained in:
Alex 2024-06-29 22:45:59 -05:00 committed by GitHub
parent 887acb9d9f
commit 8b6d27f1bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,11 @@ export class TimelineService {
if (userId) {
userIds = [userId];
if (dto.withPartners) {
const partnerIds = await getMyPartnerIds({ userId: auth.user.id, repository: this.partnerRepository });
const partnerIds = await getMyPartnerIds({
userId: auth.user.id,
repository: this.partnerRepository,
timelineEnabled: true,
});
userIds.push(...partnerIds);
}
}