Base solution for your next web application
Open Closed

Setting Permissions via Migration #4344


User avatar
0
JeffMH created

I need to get some advice on how to set default permissions on static roles not during tenant creation but during database emigrations. . I have several new permissions that are being created for a new feature. The associated permissions need to be turned on for several roles and I am wondering if there is a clean way to handle this.

For one, the permission isn't actually added into the system until Startup right? So, when I run the migrations through the migrator application, the permissions don't actually exists in the database yet for me to assign to a role.

Is there some guidance on this?


2 Answer(s)
  • User Avatar
    0
    bbakermmc created

    Join the discussion here: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/657">https://github.com/aspnetzero/aspnet-ze ... issues/657</a> :D

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @BBakerMMC :)