Skip to content
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

Closed

Conversation

albertlast
Copy link
Collaborator

@albertlast albertlast commented Mar 26, 2019

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

Signed-off-by: albertlast albertlast@hotmail.de
Signed-off-by: albertlast albertlast@hotmail.de
@albertlast albertlast changed the title Show in search only approved message when needed Show in search only approved message when needed fixes #5534 Mar 26, 2019
Signed-off-by: albertlast albertlast@hotmail.de
@live627 live627 added this to the RC3 milestone Mar 26, 2019
Copy link
Contributor

@live627 live627 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@albertlast
Copy link
Collaborator Author

I don't get it,
maybe you want to create own pr.

@Sesquipedalian
Copy link
Member

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.

@albertlast
Copy link
Collaborator Author

but the manage_boards got the right to see them,
so he should be able to search them?

@Sesquipedalian
Copy link
Member

but the manage_boards got the right to see them,
so he should be able to search them?

No, he doesn't. Please see further discussion in #5534.

Signed-off-by: albertlast albertlast@hotmail.de
@albertlast
Copy link
Collaborator Author

So i removed the manage_boards check.

Sesquipedalian
Sesquipedalian previously approved these changes May 23, 2019
@albertlast
Copy link
Collaborator Author

@Sesquipedalian can i close than this pr?

@Sesquipedalian
Copy link
Member

Sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants