This commit is contained in:
Phantasm 2026-07-19 22:56:41 +02:00
commit 3ba3319390
No known key found for this signature in database
GPG key ID: 2669E588BCC634C8
2 changed files with 3 additions and 3 deletions

View file

@ -500,7 +500,7 @@ defmodule Mix.Tasks.Pleroma.Config do
{_group} -> true {_group} -> true
_ -> false _ -> false
end) end)
|>Enum.map(fn {group} -> group end) |> Enum.map(fn {group} -> group end)
keys = keys =
config config

View file

@ -182,11 +182,11 @@ defmodule Pleroma.Web.AdminAPI.ConfigController do
defp allowed_config?(":pleroma", ":database_config_blacklist", _), do: true defp allowed_config?(":pleroma", ":database_config_blacklist", _), do: true
defp allowed_config?(group, key, mode) do defp allowed_config?(group, key, mode) do
configs = configs =
case mode do case mode do
:whitelist -> Config.get(:database_config_whitelist) :whitelist -> Config.get(:database_config_whitelist)
:blacklist -> Config.get(:database_config_blacklist) :blacklist -> Config.get(:database_config_blacklist)
end end
if configs do if configs do
Enum.any?(configs, fn Enum.any?(configs, fn