0
bilalhaidar created
Hello, How to use Abp Permissions framework on columns? I need to return specific columns per permission.
Thanks
4 Answer(s)
-
0
Hi,
If you want to hide columns on client side, you can use cellTemplate and inside of it you can bind permisison to ng-show of html element.
If you don't want to return columns data from server for some permissions, ABP does not support it by default. You can do it manually in your app service.
-
0
So, I might be able to use IsGranted method to check permissions manually and then return those columns?
-
0
Hi,
Yes, roughly you should do it like that. But even if you don't return some of column data to clietnt, you will need to hide columns according to permissions on the clietn side as well.
-
0
Correct. Thanks a lot.