Match the god damned existing tab format

This commit is contained in:
MarioE 2012-08-20 10:33:54 -04:00
parent 8bbed92683
commit 5b032f277d
4 changed files with 186 additions and 186 deletions

View file

@ -174,20 +174,20 @@ namespace TShockAPI
/// <returns>Returns true if the user has that permission.</returns>
public virtual bool HasPermission(string permission)
{
if (String.IsNullOrEmpty(permission) || RealHasPermission(permission))
{
return true;
}
string[] nodes = permission.Split('.');
for (int i = nodes.Length - 1; i >= 0; i--)
{
nodes[i] = "*";
if (RealHasPermission(String.Join(".", nodes, 0, i + 1)))
{
return true;
}
}
return false;
if (String.IsNullOrEmpty(permission) || RealHasPermission(permission))
{
return true;
}
string[] nodes = permission.Split('.');
for (int i = nodes.Length - 1; i >= 0; i--)
{
nodes[i] = "*";
if (RealHasPermission(String.Join(".", nodes, 0, i + 1)))
{
return true;
}
}
return false;
}
private bool RealHasPermission(string permission)
{