Add everything to restrictedconfig
This commit is contained in:
parent
dd00a6edeb
commit
49de232033
@ -8,7 +8,29 @@ namespace ChaosBot.Services
|
||||
public static Boolean IsAllowed(string key)
|
||||
{
|
||||
// TODO: List populated from DB
|
||||
List<string> restrictedCfg = new List<string> {"Database:Host", "Database:Port", "Database:Name", "Database:User", "Database:Pass", "Bot:Version", "NLog", "WebServer", "Discord:Token"};
|
||||
List<string> restrictedCfg = new List<string>
|
||||
{
|
||||
"Bot:Name",
|
||||
"Bot:Version",
|
||||
|
||||
"WebServer:Port",
|
||||
"WebServer:Debug",
|
||||
|
||||
"Discord:Prefix",
|
||||
"Discord:Token",
|
||||
"Discord:BaseUri",
|
||||
"Discord:ClientId",
|
||||
"Discord:ClientSecret",
|
||||
|
||||
"Lodestone:ChaosBotApi:ApiToken",
|
||||
"Lodestone:ChaosBotApi:Url",
|
||||
|
||||
"Database:Host",
|
||||
"Database:Port",
|
||||
"Database:User",
|
||||
"Database:Pass",
|
||||
"Database:Name",
|
||||
};
|
||||
|
||||
if (restrictedCfg.Contains(key))
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user