Switch case please...
This will stay open.
Above comments are still open
As said above, pageSize should use the const in PagedSearchParams as default.
I'm not 100% sure about having the mapper do the access level filtering. @Fastwind what is your opinion here?
No check for deleted, which should be admin only.
Additionally passing a bool breaks convention, rather accept the enum value of user role
Not sure this is correct either. Persons are visible depending from their visibility, maintainers get a free pass, but only for the persons they are a maintainer of. Currently the code seems to allow maitainers to see all persons regardless of them being a maintainer of them or not
As said before, the same error happens here. Maintainers shoudl be able to see all assets of the people they are a maintainer of.
Stats repository should return also a protected assets stats.