-
Notifications
You must be signed in to change notification settings - Fork 249
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
Show in search only approved message when needed fixes #5534 #5539
Conversation
Signed-off-by: albertlast albertlast@hotmail.de
Signed-off-by: albertlast albertlast@hotmail.de
Signed-off-by: albertlast albertlast@hotmail.de
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approve_posts is a board permission, meaning that you must build and check it differently. Example:
And then inject it into the query
I don't get it, |
The manage_boards permission should not be part of this logic. That permission does not give the ability to approve or disapprove of posts or topics. |
but the manage_boards got the right to see them, |
No, he doesn't. Please see further discussion in #5534. |
Signed-off-by: albertlast albertlast@hotmail.de
So i removed the manage_boards check. |
@Sesquipedalian can i close than this pr? |
Sure |
The performance impact here is less big as expected.
Another suprise for me was,
that
$modSettings['postmod_active'] && !allowedTo('approve_posts')
was not enough.
Since the board manager can see now unapproval message too,
so i had to add him to the check.
issue: #5534