이것을 버그로 분류하겠습니다. 다만 의도된 동작인지 확실하지는 않습니다.
현재 카테고리 관리자는 자신의 카테고리에서 플래그를 처리할 수 있습니다. 하지만 누군가 게시물을 '기타’로 플래그를 걸면, 관리자는 해당 플래그를 처리할 수는 있지만, 전체 대화를 볼 수 없습니다. 버튼은 표시되지만, 이 페이지가 존재하지 않거나 비공개라고만 표시됩니다.
재현 방법 (계정 2개가 필요합니다. 사용자 2는 카테고리 관리자입니다)
- 사용자가 게시물을 '기타’로 플래그를 겁니다
- 사용자 2가
/review로 이동하여 플래그를 검토하지만, 전체 대화를 볼 수 없습니다
5개의 좋아요
Thanks for the bug report. I can confirm that I’ve been able to reproduce the problem.
When a post is flagged as ‘Something Else’ a private message topic is created between the user creating the flag and the group ‘moderators’. The ‘view full conversation’ button in your screenshot links to this private message topic, and if a category group moderator clicks on this presently they will receive an error.
The solution is to do something like the following near line 309 of post_action_creator.rb, which will add the relevant group to the private message if enabled, etc:
if SiteSetting.enable_category_group_moderation? && @post.topic&.category&.reviewable_by_group_id?
create_args[:target_group_names] << @post.topic.category.reviewable_by_group.name
end
If that group has ‘Who can message this group?’ set to ‘Everyone’, the category group moderator will then be able to read these ‘Something Else’ reports.
If it is not set to ‘Everyone’, and error will be returned saying you can’t create the message when trying to create the flag.
There are two possible solutions that I can see:
- Require Category Group Moderator groups to have ‘Everyone’ for the messaging permission.
- Add an addition flag to the args in the above block of code called something like
skip_group_validation that will skip the check on the messaging permissions when creating ‘Something Else’ flags.
Let me think that over and see what I can come up with…
5개의 좋아요