diff --git a/client/src/views/dashlets/fields/records/expanded-layout.js b/client/src/views/dashlets/fields/records/expanded-layout.js index ac43ae6b5a..d01f8a9465 100644 --- a/client/src/views/dashlets/fields/records/expanded-layout.js +++ b/client/src/views/dashlets/fields/records/expanded-layout.js @@ -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; });