提交 76b2ffd3 编写于 作者: NoSubject's avatar NoSubject

修复允许匿名访问错误

上级 72db8fcd
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册