Mercurial > gemma
diff auth/session.go @ 337:e48da6f427c8
Be a bit more type precise in deserialisation of roles in sessions.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 03 Aug 2018 22:10:59 +0200 |
parents | a7b2db8b3d18 |
children | 33b59c848771 |
line wrap: on
line diff
--- a/auth/session.go Fri Aug 03 17:59:16 2018 +0200 +++ b/auth/session.go Fri Aug 03 22:10:59 2018 +0200 @@ -61,7 +61,7 @@ rd.readString(&x.User) rd.readString(&x.Password) rd.read(&n) - x.Roles = make([]string, n) + x.Roles = make(Roles, n) for i := uint32(0); n > 0 && i < n; i++ { rd.readString(&x.Roles[i]) }