diff --git a/Account.cs b/Account.cs
index e15de46..daee635 100644
--- a/Account.cs
+++ b/Account.cs
@@ -10,6 +10,7 @@ namespace NightmareCoreWeb2
public class Account
{
public UInt32 Id { get; set; }
+ public bool IsGM {get; set;}
public string Username { get; set; }
public string Email { get; set; }
public string LastIP { get; set; }
@@ -113,6 +114,13 @@ namespace NightmareCoreWeb2
{
Console.WriteLine(e);
}
+ }
+ foreach (var access in this.Access)
+ {
+ if (access.RealmID == -1 && access.RealmID >= 1)
+ {
+ this.IsGM = true;
+ }
}
rdr.Close();
diff --git a/Pages/Account.cshtml b/Pages/Account.cshtml
index b3bd6ef..828c5d4 100644
--- a/Pages/Account.cshtml
+++ b/Pages/Account.cshtml
@@ -55,7 +55,7 @@