Fix return type of RestrictedConfig.IsAllowed
This commit is contained in:
parent
49de232033
commit
a1461855c6
@ -5,7 +5,7 @@ namespace ChaosBot.Services
|
||||
{
|
||||
public class RestrictedConfig
|
||||
{
|
||||
public static Boolean IsAllowed(string key)
|
||||
public static bool IsAllowed(string key)
|
||||
{
|
||||
// TODO: List populated from DB
|
||||
List<string> restrictedCfg = new List<string>
|
||||
@ -32,10 +32,7 @@ namespace ChaosBot.Services
|
||||
"Database:Name",
|
||||
};
|
||||
|
||||
if (restrictedCfg.Contains(key))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
return !restrictedCfg.Contains(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user