修改核心表格功能,未指定权限的按钮均按add检测;

This commit is contained in:
augushong
2022-01-05 15:11:19 +08:00
parent 4e4e6c9dd3
commit 68a2a4487a

View File

@@ -464,7 +464,10 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine
} else {
for (k in item) {
var v = item[k];
if (v.auth !== undefined && admin.checkAuth(v.auth, elem)) {
if(v.auth == undefined){
v.auth = 'add'
}
if (admin.checkAuth(v.auth, elem)) {
check = true;
break;
}