code: def is_item_public(self, permission_name, view_name):
          
          permissions = self.get_public_permissions()
          if permissions:
              for i in permissions:
                  if (view_name == i.view_menu.name) and (
                      permission_name == i.permission.name
                  ):
                      return True
              return False
          else:
              return False
docs: Check if view has public permissions
  
              :param permission_name:
                  the permission: can_show, can_edit...
              :param view_name:
                  the name of the class view (child of BaseView)