diff --git a/api/user.go b/api/user.go index dc9e7222..1d910362 100644 --- a/api/user.go +++ b/api/user.go @@ -21,11 +21,13 @@ func getUser(w http.ResponseWriter, r *http.Request) { var user struct { db.User - CanCreateProject bool `json:"can_create_project"` + CanCreateProject bool `json:"can_create_project"` + IntegrationsEnable bool `json:"integrations_enable"` } user.User = *context.Get(r, "user").(*db.User) user.CanCreateProject = user.Admin || util.Config.NonAdminCanCreateProject + user.IntegrationsEnable = util.Config.IntegrationsEnable helpers.WriteJSON(w, http.StatusOK, user) }