From 211cd0ba629c4253ca7cf7b85530f1a044851785 Mon Sep 17 00:00:00 2001
From: Allen Gilliland <agilliland@gmail.com>
Date: Tue, 17 Mar 2015 23:24:19 -0700
Subject: [PATCH] user created from setup endpoint should be a superuser.

---
 src/metabase/api/setup.clj | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/metabase/api/setup.clj b/src/metabase/api/setup.clj
index b1f3455d97b..bf7458d78e4 100644
--- a/src/metabase/api/setup.clj
+++ b/src/metabase/api/setup.clj
@@ -23,7 +23,8 @@
                    :email email
                    :first_name first_name
                    :last_name last_name
-                   :password (str (java.util.UUID/randomUUID)))]
+                   :password (str (java.util.UUID/randomUUID))
+                   :is_superuser true)]
     ;; this results in a second db call, but it avoids redundant password code so figure it's worth it
     (set-user-password (:id new-user) password)
     ;; clear the setup token now, it's no longer needed
-- 
GitLab