record dashlet fields filter forbidden

This commit is contained in:
Yuri Kuznetsov
2022-08-18 12:23:59 +03:00
parent 918f3fdd70
commit 237ef71ad0
@@ -108,6 +108,8 @@ function (Dep, /** module:ui/multi-select*/MultiSelect) {
let fields = this.getMetadata().get(['entityDefs', scope, 'fields']) || {};
let forbiddenFieldList = this.getAcl().getScopeForbiddenFieldList(scope);
let fieldList = Object.keys(fields)
.sort((v1, v2) => {
return this.translate(v1, 'fields', scope)
@@ -118,6 +120,10 @@ function (Dep, /** module:ui/multi-select*/MultiSelect) {
return false;
}
if (forbiddenFieldList.indexOf(item) !== -1) {
return false;
}
return true;
});