Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

StaticRole definition #3251


User avatar
0
okeziestanley created

Good day all, I am using Module Zero and in the module configuration I created some static role definitions . But when I use the RoleManager to retrieve all roles, it doesn't include the StaticRole definitions(returns only from the database). How can I access those or write them to the database. Thanks


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    When creating each tenant you need to create static roles for that tenant as well using

    await _roleManager.CreateStaticRoles(tenantId);
    

    For current tenants, you need to manually create those static roles.

    Thanks.