Refactored get_visible_pages method to query permissions with values_list