From 7a843e699023fe6312fcc81bbb8ccad3d0428d49 Mon Sep 17 00:00:00 2001 From: RockChinQ <1010553892@qq.com> Date: Sun, 15 Sep 2024 16:41:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20isinit=E5=88=A4=E6=96=AD=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=E8=BF=87=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/service/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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