Base solution for your next web application
Open Closed

Dto property authorization #3740


User avatar
0
mamak created

In my service method after getting data from db and mapping to my dto, I want my dto's some properties to be null or empty string if user doesn't have permission to see these. Can Abp do this automatically or should i do manually using PermissionChecker.IsGranted for each prop?


1 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    There is no automatic way to do this. You should do this manually.