    it 'does not include user or group archived messages' do
      UserArchivedMessage.archive!(user.id, group_message)
      UserArchivedMessage.archive!(user.id, private_message)

      topics = TopicQuery.new(nil).list_private_messages_all(user).topics

      expect(topics).to eq([])

      GroupArchivedMessage.archive!(user_2.id, group_message)

      topics = TopicQuery.new(nil).list_private_messages_all(user_2).topics

      expect(topics).to contain_exactly(private_message)
    end
The software performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. This allows attackers to bypass intended access restrictions.