From 6a709ff5b3d071f8d6a12b50cd7c5bb059510a38 Mon Sep 17 00:00:00 2001 From: Thomas Boni Date: Wed, 7 Aug 2024 09:56:42 +0200 Subject: [PATCH] Add field "is_auditor" in user --- users.go | 1 + users_test.go | 1 + 2 files changed, 2 insertions(+) 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,