Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Permissions per column #2804


User avatar
0
bilalhaidar created

Hello, How to use Abp Permissions framework on columns? I need to return specific columns per permission.

Thanks


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    bilalhaidar created

    So, I might be able to use IsGranted method to check permissions manually and then return those columns?

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    bilalhaidar created

    Correct. Thanks a lot.