We are using latest version of aspnetzero with asp.net core mvc and jquery.
We want to add custom parameter in Permission class and pass it from CreateChildPermission as well as retrieve it in GetAllPermissions for using it on role permission tree.
Is there any way we can extend it?
4 Answer(s)
-
0
Hi,
You can take a look at https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Extending-Existing-Entities. You can't change CreateChildPermission but you can write your own CreateChildPermission (for example CreateChildPermissionWithExtraData) and it can call CreateChildPermission.
-
0
Hi
Permission class is not part of actual entities in database. so how this will work?
-
0
Hi @razkhan78
The correct one is https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Zero.Common/Authorization/PermissionSetting.cs
-
0