Open HSorensen opened 2 years ago
I have similar issue. I'm trying to create user with custom role and it screw creating other roles by user-permission, because my role is created first. Can we run it somehow after user-permission is creating it's roles? Edit: I solved it by running migration manually in index.js > bootstrap
I am trying to set the
find
andfindOne
permissions for thepublic
role for some new content types using the migration plugin.If I run the script below using the
strap console
the commands works as intended, but when migration plugin runs the script, thestrapi.entityService.findMany(...)
returns an empty array[]
.Not sure what is causing this, but I guess it is related to if the
user-permissions
is ready or not at the time themigrations
plugin is running.