97cc1b3cbb
I encountered a bug where I was missing permissions while calling searchResolver because the repository from `twentyORMManager.getRepository` was missing permissions itself. The repository was returned from the cached repositories map using a repository key feature the roleId, the rolesVersion and featureFlagMapVersion. I was not able to reproduce but this error should not go unnoticed: we always expect to find objectPermissions for every roleId in the datasource now. I was not able to understand what happened for now but I think throwing the error will help keeping an eye on it