record dashlet fields filter forbidden
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user