System Information
- Strapi Version: 10.1.12
- Operating System: MacOS 12.1
- Database: MySQL
- Node Version: v16.14.0
- NPM Version: 8.3.1
- Yarn Version: 1.22.17
Hello,
I am creating organisation based policies so the user would be limited to content only related to a specific organisation. I found multiple examples on how to do this but all of them suggest getting the users organisation inside a policy like this: policyContext.state.user.organisation
. Since organisation is a relationship field I get undefined
. How can I populate organisation
field inside policyContext.state.user
?