xingzai 7 bulan lalu
induk
melakukan
342ef3e771
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      controllers/cygx/yanxuan_special.go

+ 2 - 2
controllers/cygx/yanxuan_special.go

@@ -825,7 +825,7 @@ func (this *YanxuanSpecialController) ShowButton() {
 		return
 	}
 	articleMobileSlice := strings.Split(cnfArticle.ConfigValue, ",")
-	if utils.InArrayByStr(articleMobileSlice, sysUser.Mobile) || sysUser.Role == utils.ROLE_TYPE_CODE_ADMIN {
+	if utils.InArrayByStr(articleMobileSlice, sysUser.Mobile) || sysUser.RoleTypeCode == utils.ROLE_TYPE_CODE_ADMIN {
 		resp.IsShowYanXuanSpecial = true
 	}
 
@@ -837,7 +837,7 @@ func (this *YanxuanSpecialController) ShowButton() {
 		return
 	}
 	authorMobileSlice := strings.Split(cnfAuthor.ConfigValue, ",")
-	if utils.InArrayByStr(authorMobileSlice, sysUser.Mobile) || sysUser.Role == utils.ROLE_TYPE_CODE_ADMIN {
+	if utils.InArrayByStr(authorMobileSlice, sysUser.Mobile) || sysUser.RoleTypeCode == utils.ROLE_TYPE_CODE_ADMIN {
 		resp.IsShowSpecialAuthor = true
 	}