mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 09:15:35 +03:00
fix(server): avoid leaking people data on shared links (#6779)
* fix: avoid leaking people data on shared links * test: add e2e test
This commit is contained in:
@@ -321,7 +321,7 @@ export class AssetService {
|
||||
delete data.owner;
|
||||
}
|
||||
|
||||
if (data.ownerId !== auth.user.id) {
|
||||
if (data.ownerId !== auth.user.id || auth.sharedLink) {
|
||||
data.people = [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user