WDE0027: The current user does not have permissions to read on the - how to solve?

The code is backend code.
I have bypassed it by giving every one permission for CRUD.