Mercurial > gemma
changeset 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 | 9d69eb2f0af3 |
children | dabe189369ad |
files | auth/session.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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]) }