Răsfoiți Sursa

Merge branch 'fix/search' into 'develop'

Merge of fix/search to develop 修复搜索cms权限获取的错误

See merge request o2oa/o2oa!1083
胡起 5 ani în urmă
părinte
comite
18c96fe6cb
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      o2web/source/x_component_Search/Main.js

+ 2 - 2
o2web/source/x_component_Search/Main.js

@@ -194,7 +194,7 @@ MWF.xApplication.Search.ResaultItem = new Class({
             }
             if (this.data.type==="cms"){
                 //getDocumentControl
-                MWF.Actions.get("x_cms_assemble_control").getDocumentControl(this.data.reference, function(){
+                MWF.Actions.get("x_cms_assemble_control").getDocumentControl(this.data.reference, function(json){
                     if (json.data.control.allowVisit){
                         this.data.permission = "y";
                     }else{
@@ -278,4 +278,4 @@ MWF.xApplication.Search.ResaultItem = new Class({
         }
         this.inforNode.set("html", html);
     }
-});
+});