Interpret Groups field in authToken
This commit is contained in:
parent
a203cdc36a
commit
46abdc9120
2 changed files with 11 additions and 4 deletions
2
users.go
2
users.go
|
@ -111,7 +111,7 @@ type User struct {
|
|||
Lastname string `json:"lastname"`
|
||||
Time time.Time `json:"time"`
|
||||
Promo uint `json:"promo"`
|
||||
Groups string `json:"groups"`
|
||||
Groups string `json:"groups,omitempty"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue