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 theForumVoter
and the voter returns true if the site optionisModerationLogPublic()
is true or if the logged-in user is a moderator for that forum - the
findAllPaginated
method ofForumLogEntryRepository
has been changed by adding a filter on the query and a new methodfindAllAndModeratedPaginated
has been added for logged-in users