accessDataList for dashlets

This commit is contained in:
yuri
2018-02-20 12:42:38 +02:00
parent 357b285346
commit 5a5508a973
+6
View File
@@ -74,6 +74,12 @@ Espo.define('views/modals/add-dashlet', 'views/modal', function (Dep) {
return;
}
}
var accessDataList = this.getMetadata().get(['dashlets', item, 'accessDataList']) || null;
if (accessDataList) {
if (!Espo.Utils.checkAccessDataList(accessDataList, this.getAcl(), this.getUser())) {
return false;
}
}
this.dashletList.push(item);
}, this);
},