0
TimMackey created
I see the AbpPermissions table is populated with permissions for Role ADMIN. I haven't had any luck finding the code that adds rows to AbpPermissions for Role USER. Can you provide any guidance? Thank you.
1 Answer(s)
-
0
Hi @timmackey
For roles, it is done here https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Application/Authorization/Roles/RoleAppService.cs#L115. But, it uses ABP's RoleManager class to assign permissions to a role.
For user, you can find the relavent method in UserAppService.
For more detials, you can check ABP's source code or it's documentation https://aspnetboilerplate.com/Pages/Documents/Zero/Permission-Management.