From 0fdaade4a92b5af6f9870da949690c065996c7d6 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Sat, 26 Oct 2024 03:31:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E5=88=A4=E6=96=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/auth.go b/auth/auth.go index 9a40d09..38d6f94 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -40,7 +40,7 @@ func SetPermission(qqID int64, level constants.PermissionLevel) error { } func TryExecHandler(msg model.Message, level constants.PermissionLevel, handler model.Handler) (reply model.Reply) { - if permission, err := getAuth(msg.UserId); err != nil { + if permission, err := getAuth(msg.UserId); err == nil { if permission.Role == constants.LEVEL_IGNORE { return model.Reply{ ReplyMsg: "",