MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / RootUserExists

Function RootUserExists

model/user.go:823–830  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

821}
822
823func RootUserExists() bool {
824 var user User
825 err := DB.Where("role = ?", common.RoleRootUser).First(&user).Error
826 if err != nil {
827 return false
828 }
829 return true
830}

Callers 3

GetSetupFunction · 0.92
PostSetupFunction · 0.92
CheckSetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected