aula
aula copied to clipboard
deleted users are leaking.
We should mark all occurrances of User where we expect a non-deleted user, and find a way to enforce isActiveUser in those places on the type level somehow. I'm just fixing Persistent.Pure.votingPower, Persistent.Pure.findDelegationsByScope, but I'm sure I'm missing other places.
Related type: https://github.com/liqd/aula/blob/91f658f9f210695f7071c6cd3c2027eae5dd9858/src/Types/Core.hs#L188