mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00: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:
parent
e90d3a169c
commit
1bfef200a5
2 changed files with 42 additions and 1 deletions
|
|
@ -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 = [];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue