diff --git a/users.go b/users.go index 224dc42a5..f463952ac 100644 --- a/users.go +++ b/users.go @@ -88,6 +88,7 @@ type User struct { LastActivityOn *ISOTime `json:"last_activity_on"` ColorSchemeID int `json:"color_scheme_id"` IsAdmin bool `json:"is_admin"` + IsAuditor bool `json:"is_auditor"` AvatarURL string `json:"avatar_url"` CanCreateGroup bool `json:"can_create_group"` CanCreateProject bool `json:"can_create_project"` diff --git a/users_test.go b/users_test.go index 566c6e15b..79cede7a9 100644 --- a/users_test.go +++ b/users_test.go @@ -103,6 +103,7 @@ func TestGetUserAdmin(t *testing.T) { LastActivityOn: &lastActivityOn, ColorSchemeID: 2, IsAdmin: true, + IsAuditor: true, AvatarURL: "http://localhost:3000/uploads/user/avatar/1/index.jpg", CanCreateGroup: true, CanCreateProject: true,