June 9, 2021 in Classic self-hosted technical help
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’?
The permission is a parameter of the getItemsWithPermission method. If you don’t supply a permission, “view” will be used.
Started February 20
Started Thursday at 07:41 AM
Started February 18