Interpret Groups field in authToken

This commit is contained in:
nemunaire 2022-08-02 11:41:13 +02:00
parent a203cdc36a
commit 46abdc9120
2 changed files with 11 additions and 4 deletions

View file

@ -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"`
}