New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin/Mod Replies Disclosed in Search on post approval topics #5534
Comments
Note also shown in action=recent page as well... |
Which search index you use? |
i'm not 100% sure if the count thing should be fixed, |
Yeah I agree on that. There is going to be some performance hit. I guess making sure the topic that the message is part is approved. To fix the recent posts page and search issue. |
While trying to fix it, noticable is here that a mutch more easier logic is used as me try to use. @Arantor @Sesquipedalian your opinion would be welcome |
We should show whatever applies based on your rights - if you have the ability to approve things you should be able to see them in the recent posts list/search results. |
okay ssi recent check only for approved message and not approved topic, |
The issue is that replies to a topic that is moderated are not themselves moderated. The tests all need to also check topic approval, as well as message approval. |
i ask for the wanted behavior not how to implement it. |
Fine, I'll rephrase it for you since clearly the intent of what I was suggesting wasn't clear enough. Make it check for moderated topic status as well as moderated post status. The tests all need to exclude unapproved topics if they similarly exclude unapproved posts and you can't see those unapproved topics/posts. |
@Arantor is correct. This needs to check whether the topic is approved as well as whether the post itself is approved. Also, the manage_boards permission should not be part of the logic here. That permission does not give the ability to approve or disapprove of posts or topics, so it should not play any role in deciding whether to show unapproved posts and topics. |
Like i write in the issue, so it make less sense not to be able to search them. |
They shouldn't. Where do you see that happening? |
To be clear, members with the manage_boards permission can see all boards. That doesn't mean they can see all topics or posts. |
oh i guess my test case got wrong, Then the otherways around, |
Yes. |
But if the topic is unapproved and does not belong to the user, then searching for posts inside the topic should not show anything (unless the user also has the |
Description
If you have a board/membergroup with post approval. Replies made by admins/mods will be searchable in the SMF search system.
Steps to reproduce
Environment (complete as necessary)
Additional information/references
The text was updated successfully, but these errors were encountered: