Brew Digital Posted June 9, 2021 Posted June 9, 2021 We are currently using ‘getItemsWithPermission’ to pull topics into a sidebar, we aren’t sure if that should be filtering the posts according to users who can ‘read’ the posts or not. We have a private forum whose posts are showing in that initial list so have been using ‘$topic->canView()’ wrapped around the content which seems to do what we require. So is that the right way to do this? Or should we be able to filter to users that can view a post with only ‘getItemsWithPermission’?
Adriano Faria Posted June 9, 2021 Posted June 9, 2021 The permission is a parameter of the getItemsWithPermission method. If you don’t supply a permission, “view” will be used.
Recommended Posts