From 5b3e88247ed44c349e3d69d172e72eb5567582c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferdinand=20M=C3=BCtsch?= Date: Fri, 12 Feb 2021 18:13:49 +0100 Subject: [PATCH] chore: introduce user admin flag --- models/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/user.go b/models/user.go index 81fee75..9494e16 100644 --- a/models/user.go +++ b/models/user.go @@ -12,6 +12,7 @@ type User struct { ShareProjects bool `json:"-" gorm:"default:false; type:bool"` ShareOSs bool `json:"-" gorm:"default:false; type:bool; column:share_oss"` ShareMachines bool `json:"-" gorm:"default:false; type:bool"` + IsAdmin bool `json:"-" gorm:"default:false; type:bool"` WakatimeApiKey string `json:"-"` }