瀏覽代碼

Merge branch 'fix/anonymous' into 'wrdp'

修复允许匿名访问错误

See merge request o2oa/o2oa!2323
胡起 5 年之前
父節點
當前提交
9830f8fccc
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      o2web/source/o2_core/o2/xAction/services/x_organization_assemble_authentication.js

+ 2 - 1
o2web/source/o2_core/o2/xAction/services/x_organization_assemble_authentication.js

@@ -42,7 +42,8 @@ MWF.xAction.RestActions.Action["x_organization_assemble_authentication"] = new C
     getAuthentication: function(success, failure, async){
         this.action.invoke({"name": "getAuthentication",
             "success": function(json, responseText){
-                if (json.data.tokenType!=="anonymous"){
+                if (json.data.tokenType!=="anonymous" || layout.anonymous){
+                    if (!json.roleList) roleList: [];
                     if (success) success(json);
                 }else{
                     if (failure) failure(null, responseText, json.message);