Better handling of users in projects when querying annotation documents
Describe the refactoring action We have various methods in particular in DocumentService to list annotation documents. Some of these filter out annotation documents for users that are no longer on the project (i.e. that have no permissions on the project anymore) and other methods do not do this.
We probably should have a better handing of this - maybe in such a way that the adding/removing of users from/to a project is handled differently and that removing a user from a project actually drops all the annotations / annotation documents of that user in the process.
Expected benefit Remove potential bugs and surprises for cases where a user is no longer on a project but annotation documents of the user still float around and could affect things such as workload management or agreement.