diff --git a/backend/service/admin.go b/backend/service/admin.go index 7b7a814..a39f530 100644 --- a/backend/service/admin.go +++ b/backend/service/admin.go @@ -53,7 +53,7 @@ func (as *AdminService) DeleteOAuth2App(appID string) error { func (as *AdminService) IsInit() (bool, error) { // 获取所有账户,如果没有账户则认为是初始化状态 - _, total, err := as.DB.GetAccounts(-1, database.USER_GROUP_ANY, 1, 1, 0) + _, total, err := as.DB.GetAccounts(-1, database.USER_GROUP_ADMIN, 1, 1, 0) if err != nil { return true, err