Fix get_action_power_level for redact and kick actions
This commit is contained in:
parent
58d3e17259
commit
24f0657710
1 changed files with 4 additions and 4 deletions
|
@ -204,10 +204,10 @@ defmodule MatrixServer.StateResolution.Authorization do
|
||||||
defp get_action_power_level(:invite, _), do: 50
|
defp get_action_power_level(:invite, _), do: 50
|
||||||
defp get_action_power_level(:ban, %{"ban" => pl}), do: pl
|
defp get_action_power_level(:ban, %{"ban" => pl}), do: pl
|
||||||
defp get_action_power_level(:ban, _), do: 50
|
defp get_action_power_level(:ban, _), do: 50
|
||||||
# defp get_action_power_level(:redact, %{"redact" => pl}), do: pl
|
defp get_action_power_level(:redact, %{"redact" => pl}), do: pl
|
||||||
# defp get_action_power_level(:redact, _), do: 50
|
defp get_action_power_level(:redact, _), do: 50
|
||||||
# defp get_action_power_level(:kick, %{"kick" => pl}), do: pl
|
defp get_action_power_level(:kick, %{"kick" => pl}), do: pl
|
||||||
# defp get_action_power_level(:kick, _), do: 50
|
defp get_action_power_level(:kick, _), do: 50
|
||||||
|
|
||||||
defp get_action_power_level({:event, %Event{type: type}}, %{"events" => events})
|
defp get_action_power_level({:event, %Event{type: type}}, %{"events" => events})
|
||||||
when is_map_key(events, type),
|
when is_map_key(events, type),
|
||||||
|
|
Loading…
Reference in a new issue