Browse Source

no message

xingzai 1 year ago
parent
commit
041f028736
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/user.go

+ 1 - 1
controllers/user.go

@@ -256,7 +256,7 @@ func (this *UserController) Detail() {
 		return
 		return
 	}
 	}
 	if userYanxunaDetail != nil {
 	if userYanxunaDetail != nil {
-		if utils.InArrayByStr(resp.PermissionName, utils.CHART_PERMISSION_NAME_MF_YANXUAN) {
+		if !utils.InArrayByStr(resp.PermissionName, utils.CHART_PERMISSION_NAME_MF_YANXUAN) {
 			resp.PermissionName = append(resp.PermissionName, utils.CHART_PERMISSION_NAME_MF_YANXUAN)
 			resp.PermissionName = append(resp.PermissionName, utils.CHART_PERMISSION_NAME_MF_YANXUAN)
 		}
 		}
 	}
 	}