- Strapi Version: 4.3.2
- Operating System: Mac Os Monterrey
- Database: Postgres
- Node Version: v14.19.1
- NPM Version: v6.14.16
- Yarn Version: v1.22.19
I’m trying to automatically populate the relation table between Permissions(Endpoint Actions) and Roles(Authenticated, Public) using the
plugin-users-permissions and the
custom endpoints definition so I don’t have to do it manually in the admin.
The reason of this is that I have a lot of endpoints and it would be really time consuming to define them both to Public and Authenticated each time I reset my DB(dev purpose only).
i.e Enable Analytics actions for Public role from the code by default (some bootstrap function or some property in the route definition)
Thanks in advance everyone!