From ff10be5184eb384a6e6a7f2108dba9de0f47b1af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 14 Apr 2022 18:08:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/permission/permission.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/business/jxstore/permission/permission.go b/business/jxstore/permission/permission.go index 40acecb3a..04bea7b00 100644 --- a/business/jxstore/permission/permission.go +++ b/business/jxstore/permission/permission.go @@ -382,9 +382,6 @@ func GetUserStoresResultMap(userID string) (resultMap map[int]int, err error) { func IsRoled(ctx *jxcontext.Context) bool { if ctx.GetUserName() != "jxadmin" { if user, err := dao.GetUserByID(dao.GetDB(), "user_id", ctx.GetUserID()); err == nil { - if user.Type == 23 { - return false - } if user.Type&model.UserTypeRole != 0 { return true }