# HG changeset patch # User Sascha L. Teichmann # Date 1533327059 -7200 # Node ID e48da6f427c8808ccf79ce26d50974b933eceda2 # Parent 9d69eb2f0af3423bfba0d421a2cc733cee57939c Be a bit more type precise in deserialisation of roles in sessions. diff -r 9d69eb2f0af3 -r e48da6f427c8 auth/session.go --- 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]) }