Fix return type of RestrictedConfig.IsAllowed

This commit is contained in:
Daniel_I_Am 2020-10-16 19:00:22 +02:00
parent 49de232033
commit a1461855c6
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -5,7 +5,7 @@ namespace ChaosBot.Services
{ {
public class RestrictedConfig public class RestrictedConfig
{ {
public static Boolean IsAllowed(string key) public static bool IsAllowed(string key)
{ {
// TODO: List populated from DB // TODO: List populated from DB
List<string> restrictedCfg = new List<string> List<string> restrictedCfg = new List<string>
@ -32,10 +32,7 @@ namespace ChaosBot.Services
"Database:Name", "Database:Name",
}; };
if (restrictedCfg.Contains(key)) return !restrictedCfg.Contains(key);
return false;
return true;
} }
} }
} }