|
@@ -217,7 +217,7 @@ func (this *BaseAuthMobileController) Detail() {
|
|
|
resp.ExamineStatus = item.Status
|
|
|
if item.UserId != user.UserId && item.Status != 3 && !strings.Contains(cnf.ConfigValue, user.Mobile) {
|
|
|
resp.CygxYanxuanSpecialItem = *new(models.CygxYanxuanSpecialItem) // 如果内容不可见,就把内容置空
|
|
|
- resp.HasPermission = 2
|
|
|
+ //resp.HasPermission = 2
|
|
|
}
|
|
|
|
|
|
//如果在web端有样式或者上传了文件,小程序就禁止编辑修改内容
|
|
@@ -234,13 +234,13 @@ func (this *BaseAuthMobileController) Detail() {
|
|
|
}
|
|
|
|
|
|
var hasPermission int
|
|
|
- if userId > 0 {
|
|
|
- hasPermission, err = services.GetUserYxHasPermissionCode(user)
|
|
|
- if err != nil {
|
|
|
- br.Msg = "获取失败"
|
|
|
- br.ErrMsg = "获取失败, Err:" + err.Error()
|
|
|
- }
|
|
|
- }
|
|
|
+ //if userId > 0 {
|
|
|
+ // hasPermission, err = services.GetUserYxHasPermissionCode(user)
|
|
|
+ // if err != nil {
|
|
|
+ // br.Msg = "获取失败"
|
|
|
+ // br.ErrMsg = "获取失败, Err:" + err.Error()
|
|
|
+ // }
|
|
|
+ //}
|
|
|
|
|
|
//if userId == 0 {
|
|
|
// hasPermission = 1
|