- ABP Framework version: 8.2.1
- UI Type: Angular
- Database System: EF Core ( MySQL)
- Tiered (for MVC) or Auth Server Separated (for Angular): Auth Server Separated (for Angular)
- Exception message and full stack trace:
- Steps to reproduce the issue:
using permission checker how do i use IsGrantedAsyn function to pass permission name and role to check if permission exists or not in the specified role?
5 Answer(s)
-
0
hi
IPermissionStore PermissionStore; var result = await PermissionStore.IsGrantedAsync(permissionName, RolePermissionValueProvider.ProviderName, roleName);Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
thanks, We are trying to store some user info like Branches : [{"Id":123, "Roles:['admin','user']},{"Id":113, "Roles:['subadmin','user']}] as object globally for filter purpose. Could you please suggest best way to integrate this in abp framework. storing this in access token looks incorrect as the information can have more arrays. We need to apply this filter with each db query like imultitenant filter. Filter is im clear how to implement.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
Please create a new question for the Filter question.
Thanks.
thanks created : https://abp.io/support/questions/8423/How-to-implement-a-branch-filter-like-imlutitenancy-under-a-tenant
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)