fix: 修复忽略等级判断问题
This commit is contained in:
parent
d0152c6c81
commit
0fdaade4a9
@ -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: "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user