feat: implement alias strategy for receipt import with user-scoped and global fallback, enhance validation and normalization, and update UI components
Test Suite / test (24.15.0) (push) Has been cancelled

This commit is contained in:
Nils-Johan Gynther
2026-05-09 23:41:42 +02:00
parent b342de906e
commit 65137b41fb
17 changed files with 388 additions and 67 deletions
@@ -102,7 +102,7 @@ export class ReceiptImportController {
}
const isAdmin = req?.user?.role === 'admin';
if (dto.isAdminLearning && !isAdmin) {
if (dto.items.some((item) => item.learnAliasGlobally === true) && !isAdmin) {
throw new BadRequestException('Endast administratörer kan spara globala aliaser.');
}