mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
parent
1a6c3731e0
commit
18a571e7d1
2 changed files with 2 additions and 3 deletions
|
@ -50,7 +50,7 @@ defmodule PhilomenaWeb.CommentController do
|
|||
render(conn, "index.html", title: "Comments", error: msg, comments: [])
|
||||
end
|
||||
|
||||
defp filters(%{role: role}) when role in ["moderator", "admin"], do: []
|
||||
defp filters(%{role: role}) when role in ["assistant", "moderator", "admin"], do: []
|
||||
|
||||
defp filters(_user),
|
||||
do: [%{term: %{hidden_from_users: false}}]
|
||||
|
|
|
@ -51,8 +51,7 @@ defmodule PhilomenaWeb.PostController do
|
|||
|
||||
defp filters(%{role: "assistant"}) do
|
||||
[
|
||||
%{terms: %{access_level: ["normal", "assistant"]}},
|
||||
%{term: %{deleted: false}}
|
||||
%{terms: %{access_level: ["normal", "assistant"]}}
|
||||
]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue