LPS-49592 Dont show categories in search when user does not have view permission for them
LPS-49592 use the permission wrapper to make sure we account for all cases