diff options
Diffstat (limited to 'app/models/account.go')
-rw-r--r-- | app/models/account.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/account.go b/app/models/account.go index af29c3e..346354c 100644 --- a/app/models/account.go +++ b/app/models/account.go | |||
@@ -25,8 +25,9 @@ type Account struct { | |||
25 | AccountType string `json:"account_type"` | 25 | AccountType string `json:"account_type"` |
26 | AccountNumber int `json:"account_number"` | 26 | AccountNumber int `json:"account_number"` |
27 | Name string `json:"name"` | 27 | Name string `json:"name"` |
28 | ConsoleSessionDuration time.Duration `json:"console_session_duration, omitempty"` | 28 | ConsoleSessionDuration time.Duration `json:"console_session_duration,omitempty"` |
29 | VaultMaterial string `json:"vault_material,omitempty"` | 29 | AdminVaultMaterial string `json:"admin_vault_material,omitempty"` |
30 | AssumedRoleARN string `json:"assumed_role_arn"` | ||
30 | DefaultRegion string `json:"default_region"` | 31 | DefaultRegion string `json:"default_region"` |
31 | Users []string `json:"users,omitempty"` | 32 | Users []string `json:"users,omitempty"` |
32 | Deleted *time.Time `json:"deleted,omitempty" bson:"deleted,omitempty"` | 33 | Deleted *time.Time `json:"deleted,omitempty" bson:"deleted,omitempty"` |
@@ -43,10 +44,9 @@ func (a *Account) CanBeModifiedBy(u *User) bool { | |||
43 | type MongoDbAccountStore struct { | 44 | type MongoDbAccountStore struct { |
44 | Db *mongodb.Mongo | 45 | Db *mongodb.Mongo |
45 | 46 | ||
46 | // ReturnDeleted will allow all methods to return deleted items. By default | 47 | // ReturnDeleted will allow all methods to return deleted items. items |
47 | // items where the Deleted field is set will not be returned. This should | 48 | // where the Deleted field is set will not be returned. Non-admin |
48 | // be the common cast for most code using this store but in some Admin | 49 | // use-cases should leave this set to false. |
49 | // use-cases it would be useful to show deleted accounts. | ||
50 | ReturnDeleted bool | 50 | ReturnDeleted bool |
51 | } | 51 | } |
52 | 52 | ||