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 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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user