mirror of
https://github.com/immich-app/immich.git
synced 2025-01-16 16:56:46 +01: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:
parent
887acb9d9f
commit
8b6d27f1bc
1 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,11 @@ export class TimelineService {
|
||||||
if (userId) {
|
if (userId) {
|
||||||
userIds = [userId];
|
userIds = [userId];
|
||||||
if (dto.withPartners) {
|
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);
|
userIds.push(...partnerIds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue