fix: skip faces of other users when reassigning faces (#31580)

This commit is contained in:
Daniel Dietzler
2026-09-15 17:27:46 +02:00
committed by GitHub
parent 9e0362dca0
commit e35aa718d9
+6 -1
View File
@@ -96,7 +96,12 @@ export class PersonService extends BaseService {
); );
for (const face of faces) { for (const face of faces) {
await this.requireAccess({ auth, permission: Permission.PersonCreate, ids: [face.id] }); const ids = await this.checkAccess({ auth, permission: Permission.PersonCreate, ids: [face.id] });
if (ids.size !== 1) {
continue;
}
if (person.faceAssetId === null) { if (person.faceAssetId === null) {
changeFeaturePhoto.set(personKey(person), person); changeFeaturePhoto.set(personKey(person), person);
} }