Check:
Check:
SeedHelper
is called in PostInitialize
method of your *EntityFrameworkCoreModule
on application startup.
You cannot clone a folder. You can clone the repo, accessible by clicking on aspnetboilerplate-samples.
You can clone the repo.
Check the error in Logs.txt.
The new support site already works like that. This question is #5870, so the link is https://support.aspnetzero.com/QA/Questions/5870.
Previous post numbers are not carried over. Are you looking for https://forum.aspnetboilerplate.com/viewtopic.php?f=5&p=27521?
What's wrong?
I'm not sure overriding CreateStaticRoles is correct either. It doesn't look like it is ever called during the startup process, and it also seems to be tenant specific.
Static roles aren't used during the startup process.
do we have iterate every existing tenant to remove/add them
Yes.
or is there a way to remove a role/permission globally via code and have it effect all tenants?
You can write code to do that.
Does removing the permission from the STATIC role remove it for each of the tenants automatically?
No. It's not a valid assumption.
It's the wrong place to do it.
You can override CreateStaticRoles
method in RoleManager
.