Skip to content

Added forum option to hide moderation log to non-moderators

This PR adds a forum option to hide the moderation log to non-moderators. Additionally, if this option is enabled for a certain forum, in the global moderation log the forum's moderation log will not be shown if the current user is not a moderator of that forum or if the user is not logged-in

To add this feature:

  • the new attribute moderation_log has been added to the ForumVoter and the voter returns true if the site option isModerationLogPublic() is true or if the logged-in user is a moderator for that forum
  • the findAllPaginated method of ForumLogEntryRepository has been changed by adding a filter on the query and a new method findAllAndModeratedPaginated has been added for logged-in users

Merge request reports