types: add Admin field to User

This commit is contained in:
Simone Gotti 2019-05-03 17:38:12 +02:00
parent 041e8867f8
commit a269347c9d
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ type User struct {
Password string `json:"password,omitempty"`
Tokens map[string]string `json:"tokens,omitempty"`
// Admin defines if the user is a global admin
Admin bool `json:"admin,omitempty"`
}
type Organization struct {