Use crazy hack to finally get pleroma:report notifications not visible after revoking privileges
This commit is contained in:
parent
3bb78ac152
commit
351b5a9df4
|
@ -65,7 +65,8 @@ def get_notifications(user, params \\ %{}) do
|
||||||
cast_params(params) |> Map.update(:include_types, [], fn include_types -> include_types end)
|
cast_params(params) |> Map.update(:include_types, [], fn include_types -> include_types end)
|
||||||
|
|
||||||
options =
|
options =
|
||||||
if "pleroma:report" not in options.include_types or
|
if ("pleroma:report" not in options.include_types and
|
||||||
|
User.privileged?(user, :reports_manage_reports)) or
|
||||||
User.privileged?(user, :reports_manage_reports) do
|
User.privileged?(user, :reports_manage_reports) do
|
||||||
options
|
options
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue