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