ConfigController: Don't allow whitelist modification.
This commit is contained in:
parent
117b0bd79e
commit
a4fb651fac
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ defmodule Pleroma.Web.AdminAPI.ConfigController do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
defp whitelisted_config?(:pleroma, :database_config_whitelist), do: false
|
defp whitelisted_config?(":pleroma", ":database_config_whitelist"), do: false
|
||||||
|
|
||||||
defp whitelisted_config?(group, key) do
|
defp whitelisted_config?(group, key) do
|
||||||
if whitelisted_configs = Config.get(:database_config_whitelist) do
|
if whitelisted_configs = Config.get(:database_config_whitelist) do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue