mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-17 21:55:24 +02:00
findOne resolves to null when nothing matches, but both the Postgres and the Mongo implementation compared the result against undefined, so every lookup reported the permission as granted. Compare against null instead. Signed-off-by: Michael Uray <michaeluray@users.noreply.github.com> Co-authored-by: Michael Uray <michaeluray@users.noreply.github.com>