From bf67bac35137b8a0021720cbd57194957241b011 Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Mon, 23 Jul 2018 14:08:39 +0200 Subject: [PATCH] upd(rbac): update api call response types --- rbac/types/structs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rbac/types/structs.go b/rbac/types/structs.go index e14fbf4f2..2a0fe5335 100644 --- a/rbac/types/structs.go +++ b/rbac/types/structs.go @@ -3,9 +3,12 @@ package types type ( User struct { Username string `json:"username"` + AssignedRoles []string `json:"assignedRoles"` + AuthorizedRoles []string `json:"authorizedRoles"` } Session struct { + ID string `json:"session"` Username string `json:"username"` Roles []string `json:"roles"` }