From a269347c9dac2d3effde9385a1f111722a86763d Mon Sep 17 00:00:00 2001 From: Simone Gotti Date: Fri, 3 May 2019 17:38:12 +0200 Subject: [PATCH] types: add Admin field to User --- internal/services/types/types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/services/types/types.go b/internal/services/types/types.go index b70ff69..d89d22a 100644 --- a/internal/services/types/types.go +++ b/internal/services/types/types.go @@ -71,6 +71,9 @@ type User struct { Password string `json:"password,omitempty"` Tokens map[string]string `json:"tokens,omitempty"` + + // Admin defines if the user is a global admin + Admin bool `json:"admin,omitempty"` } type Organization struct {