修改订单权限

This commit is contained in:
邹宗楠
2022-04-14 18:08:52 +08:00
parent d13d7bf5e5
commit ff10be5184

View File

@@ -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
}