derpibooru / philomena

Next-generation imageboard

Home Page:https://derpibooru.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assistants can't see deleted posts in forum/comments search

opened this issue · comments

Considering they can see them in the forums/comments in general, this is definitely unintended behavior.

Adding assistant to

defp filters(%{role: role}) when role in ["moderator", "admin"], do: []
(and the equivalent on comment_controller) seems to fix the issue, but I'm unsure if that affects other things. At face level it doesn't appear to.

Either way L52-57 should probably be looked at too in case they're not needed.