0
bilalhaidar created
Hello, How to use Abp Permissions framework on columns? I need to return specific columns per permission.
Thanks
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
So, I might be able to use IsGranted method to check permissions manually and then return those columns?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Correct. Thanks a lot.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)