52251cf711
ConsentController.resolveUserId() and DsgvoController.resolveUserId() read auth.getName() as an email and did findByEmailAndTenantId(...), but JwtAuthFilter sets the Authentication principal to the userId (UUID) — the JWT subject is the userId, not the email. So auth.getName() returns a UUID string, the email lookup never matched, and every consent/dsgvo call threw 'User not found' (404/500). This made the DSGVO consent banner unusable: /consent/check 404'd (banner always shown) and clicking Accept POSTed /consent which 500'd with no UI feedback — the button appeared to 'not react'. Fix: parse auth.getName() as the userId UUID directly and verify existsById.