1
0
Fork 0
mirror of synced 2024-06-28 11:00:55 +12:00
This commit is contained in:
Martin McKeaveney 2022-05-22 16:39:34 +01:00
parent 8a815fea2c
commit 0606519695

View file

@ -1,7 +1,6 @@
const {
generateConfigID,
getConfigParams,
getGlobalUserParams,
getScopedFullConfig,
getAllApps,
} = require("@budibase/backend-core/db")
@ -271,13 +270,6 @@ exports.configChecklist = async function (ctx) {
const oidcConfig = await getScopedFullConfig(db, {
type: Configs.OIDC,
})
// They have set up an global user
const users = await db.allDocs(
getGlobalUserParams(null, {
include_docs: true,
})
)
const adminUser = users.rows.some(row => row.doc.admin)
ctx.body = {
apps: {
@ -291,7 +283,7 @@ exports.configChecklist = async function (ctx) {
link: "/builder/portal/manage/email",
},
adminUser: {
checked: adminUser,
checked: true,
label: "Create your first user",
link: "/builder/portal/manage/users",
},