diff --git a/aid/config.go b/aid/config.go index 849d6d6..2f40107 100644 --- a/aid/config.go +++ b/aid/config.go @@ -10,6 +10,7 @@ import ( type CS struct { Accounts struct { Gods []string + Owners []string } Database struct { URI string @@ -62,6 +63,7 @@ func LoadConfig(file []byte) { } Config.Accounts.Gods = cfg.Section("accounts").Key("gods").Strings(",") + Config.Accounts.Owners = cfg.Section("accounts").Key("owners").Strings(",") Config.Database.DropAllTables = cfg.Section("database").Key("drop").MustBool(false) Config.Database.URI = cfg.Section("database").Key("uri").String() if Config.Database.URI == "" { @@ -166,6 +168,6 @@ func LoadConfig(file []byte) { Config.Fortnite.Season = parsedSeason Config.Fortnite.Everything = cfg.Section("fortnite").Key("everything").MustBool(false) - Config.Fortnite.Password = cfg.Section("fortnite").Key("password").MustBool(false) + Config.Fortnite.Password = cfg.Section("fortnite").Key("disable_password").MustBool(false) Config.Fortnite.DisableClientCredentials = cfg.Section("fortnite").Key("disable_client_credentials").MustBool(false) } \ No newline at end of file diff --git a/person/permissions.go b/person/permissions.go index dbd553a..c986906 100644 --- a/person/permissions.go +++ b/person/permissions.go @@ -1,7 +1,5 @@ package person -import "github.com/ectrc/snow/aid" - type Permission int64 // DO NOT MOVE THE ORDER OF THESE PERMISSIONS AS THEY ARE USED IN THE DATABASE @@ -16,33 +14,59 @@ const ( PermissionOwner PermissionDonator - permissionRealAll = 1<