refactor: remove IsCameo flag from JSON
This commit is contained in:
parent
a06e50b704
commit
0f0b2ede64
@ -33,6 +33,7 @@ func (authMux *AuthMux) Login(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
if !usr.IsAdmin() {
|
||||
// check, if game is enabled
|
||||
gm, err := authMux.app.GetGameById(usr.GetGameId())
|
||||
if err != nil || !gm.IsActive() {
|
||||
log.ErrorLog(fmt.Errorf("game %s disabled for user %s", gm.GetId(), usr.GetName()))
|
||||
|
@ -37,5 +37,5 @@ type UserinfoJson struct {
|
||||
Name string `json:"name"`
|
||||
Role string `json:"role"`
|
||||
GameId string `json:"game"`
|
||||
IsCameo bool `json:"isCameo,omitempty"`
|
||||
IsCameo bool `json:"-"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user